[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: bison bug?????
From: |
Paul Hilfinger |
Subject: |
Re: bison bug????? |
Date: |
Fri, 24 Feb 2006 14:26:25 -0800 |
Bison 1.25 is truly ancient at this point (ca. 1995), so it may be
difficult to get advice on this, but I do observe that
32768 == -32768 mod 2**16 (typical size of short)
which is almost certainly the cause of the anomaly you see. Perhaps
you should take this opportunity to upgrade your version of Bison?
Paul Hilfinger
> 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?
>
> Ruud