[Top][All Lists]

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

Re: bison bug?????

From: Hans Aberg
Subject: Re: bison bug?????
Date: Fri, 24 Feb 2006 20:26:59 +0100

Latest versions are Bison 2.1 <http://www.gnu.org/software/bison/> and Flex 2.5.33 <http://flex.sourceforge.net/>, and earlier version are not supported.

On 16 Feb 2006, at 18:23, Ruud van der Meer wrote:

Hi all,

I am using bison/flex on windows (Visual C++)
gnu bison version 1.25
gnu flex version 2.5.4

I made a small parser and I noticed that the define YYFLAG
in my generated cpp file is set to (+)32768. In an example I
found I see it is set to -32768. I wonder how I can also set
it to -32768!

It seems that a result of having this define set to 32768 is
that no additional parser error information is generated. Of
course I like this extra parser error data.

Who knows what I should change (in the .l or .y maybe) to
get a different value for YYFLAG?


PS. I tried this:
#define YYDEBUG 1 // Generate debug code; needed for YYERROR_VERBOSE
#define YYERROR_VERBOSE // Give a more specific parse

and I tried the -t option

but it did not help!

reply via email to

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