[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: push parser
From: |
Bob Rossi |
Subject: |
Re: push parser |
Date: |
Mon, 30 Jul 2007 20:58:50 -0400 |
User-agent: |
Mutt/1.5.13 (2006-08-11) |
On Mon, Jul 30, 2007 at 08:56:53PM -0400, Joel E. Denny wrote:
> 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.
OK, that makes sense now that you say it.
Thanks,
Bob Rossi