help-bison
[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, 30 Jul 2007 20:56:53 -0400 (EDT)

On Mon, 30 Jul 2007, Bob Rossi wrote:

> OK, so, when I compile gdbmi grammar with push-pull-parse and with
> pure-parse I get a compile error. That's because in the generated c file 
> yypull_parse calls YYLEX. After I preprocess the file I get,
>      gdbmi_char = gdbmi_lex (&gdbmi_lval, &gdbmi_lloc);
> but my lexer function doesn't take any arguments.

If you use global gdbmi_lval and gdmi_lloc instead of making them 
arguments to gdbmi_lex, then it's not a pure parser.




reply via email to

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