bison-patches
[Top][All Lists]
Advanced

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

Re: push parser


From: Joel E. Denny
Subject: Re: push parser
Date: Mon, 18 Dec 2006 15:04:42 -0500 (EST)

On Mon, 18 Dec 2006, Bob Rossi wrote:

> I don't understand. Why would we want impure push parsers?

In the long list at the end of the email, please read point #3.

> I noticed that you changed the calc tests to only call yyparse,
> shouldn't we be testing the yypush_parse function still?

yyparse calls yypull_parse, which calls yypush_parse in nearly the same 
manner as your tests did.

> When I apply your patch, I get in gdbmi_grammer.tab.h this prototype,
>   int gdbmi_push_parse (gdbmi_pstate *yyps);
> this no longer allows me to work with the push parser they way I used
> to.

The impure interface uses global variables for communication with the 
scanner: yychar, yylloc, and yylval.  If you want the pure interface, you 
must declare %pure-parser.




reply via email to

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