help-bison
[Top][All Lists]
Advanced

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

Re: Whats wrong?


From: Tim Van Holder
Subject: Re: Whats wrong?
Date: 11 Feb 2002 14:09:21 +0100

On Mon, 2002-02-11 at 13:49, Billy Patton wrote:
> On my linux box I have bison version 1.32
> On our network and my Solaris 7 box I use version 1.25
> 
> When I try and compile my yacc on the linux box I get
> 
> /usr/local/share/bison/bison.simple:197: parse error
> /usr/local/share/bison/bison.simple:398: parse error
> /usr/local/share/bison/bison.simple:407: parse error
> 
> the 197 line is
> 
> 196: #if YYPURE
> 197: #  if YYLSP
> 
> 397: #if !YYPURE
> 398: YY_DECL_VARIABLES
> 
> 406: #if YYPURE
> 407:   YY_DECL_VARIABLES
> 
> 
> In my yacc I have
> #define YYPURE
> 
> 
> Can someone tell me what is wrong?
> PLEASE :)

Try

#define YYPURE 1

instead.
For a conditional like

#if FOO

to work, FOO must be defined to a value (otherwise
the preprocessor sees just '#if', which results in
the parse error).





reply via email to

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