help-bison
[Top][All Lists]
Advanced

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

RE: How to replace YACC global variables !


From: Hans Aberg
Subject: RE: How to replace YACC global variables !
Date: Thu, 11 Mar 2004 20:32:41 +0100

At 09:45 +0530 2004/03/08, Mondal, Debashis E (GE Energy) wrote:
>Hans,
>I am very sorry to write you personal mail. Please excuse me for this
>inconvenience.

I have gotten so tired on all newbies that write me personal mail without
cc-ing Help-Bison so that I nowadays use the list address as return
address. :-)

Always cc the GNU mailing list, unless you are positively sure it should
not be.

>I am not suppose to write a header file for this case, because when I will
>compile the test.y by yacc ( in Solaris System ), it generates these
>global variables ( yyv, yys, yyerrflag, yytmp, yystate, yyps, yypv etc )
>and uses it. But if I compile the same test.y in bison ( In Linux System
>), it doesn't generate these global variables and never uses it.

Bison should generate a Yacc compatible parser file according to what is
described in the POSIX standards. Thus, if those variable names above
appear in the POSIX standard, it is a bug in Bison, but otherwise your Yacc
version generates variables that are not in the POSIX standard, in which
the problem is that you are using variables that Bison will never support.
I do not know those things.

Bison bugs should be reported to Bug-Bison <address@hidden>. Make first
sure those variable names are not present in the header that Bison produces.

  Hans Aberg






reply via email to

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