help-bison
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Syntax Error with Bison 1.875


From: Akim Demaille
Subject: Re: Syntax Error with Bison 1.875
Date: Thu, 06 Feb 2003 10:45:34 +0100
User-agent: Gnus/5.090008 (Oort Gnus v0.08) Emacs/21.2 (i386-pc-linux-gnu)

| I upgraded my Bison from 1.28 to 1.875 a few days ago and so far have
| run into two cases where I get "syntax errors" when running in yacc
| mode.  The two programs are during "make install" of xfree and make of
| ispell.  Switching back to 1.28 I can do both operations just fine.  I
| downloaded 1.75 and I get the same thing as 1.875.  My guess is
| something was "fixed" in Bison that broke some things in other
| programs.  How do I go about fixing it.
| 
| This is the output I get when making ispell :
| 
| + cc -O2 -mcpu=athlon-mp -march=pentium3 -mmmx -msse -mfpmath=sse -Wall -I .
| -c makedent.c
| makedent.c:2: warning: Rcs_Id' defined but not used
| + yacc parse.y
| parse.y:676.3: parse error, unexpected "|"
| parse.y:705.8-706.30: invalid $ value
| parse.y:705.8-706.30: $3 of tion_stmt' has no declared type
| parse.y:705.8-712.47: invalid $ value
| parse.y:705.8-712.47: $3 of tion_stmt' has no declared type
| + cc -O2 -mcpu=athlon-mp -march=pentium3 -mmmx -msse -mfpmath=sse -Wall -I .
| -c y.tab.c
| cc: y.tab.c: No such file or directory

Hi,

Bison is asking that the rules be ended either by `;', or `|'.  Look
around line 676 for a missing `;'.




reply via email to

[Prev in Thread] Current Thread [Next in Thread]