On Thu, Apr 06, 2006 at 11:27:24AM -0400, Bob Rossi wrote:
> On Thu, Apr 06, 2006 at 05:16:36PM +0200, Akim Demaille wrote:
> > >>> "Bob" == Bob Rossi <[EMAIL PROTECTED]> writes:
> >
> > > I added the %push-parser option, so that a bison input grammar file can
> > > ask for itself to be a push-parser.
> >
> > What should Bison knows about this? is it just a means to select the
> > right skeleton, or it actually changes something for bison itself?
>
> It is exactly like %pure-parser. It does not select a different
> skeleton. In fact, %pure-parser uses the yacc.c skeleton.
^^^^^^^^^^^^
Argh. I mean to say %push-parser here.
>
> I put m4 conditionals in yacc.c, and if %pure-parser is set, yacc.c
> outputs a pure parser. This mostly means that yacc.c creates a struct
> with all the variables that yyparse needs, and that yyparse does
> 'pv->yychar' instead of 'yychar'.
>
> Thanks,
> Bob Rossi
>
>