[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: push parser
From: |
Paul Eggert |
Subject: |
Re: push parser |
Date: |
Fri, 29 Sep 2006 12:01:01 -0700 |
User-agent: |
Gnus/5.1008 (Gnus v5.10.8) Emacs/21.4 (gnu/linux) |
Bob Rossi <address@hidden> writes:
>> What should I do with yynerrs?
I'd leave it out. It's not documented (and not that useful), so no
harm done.
> Still wondering what to do with yynerrs. I simply made it a local
> variable for now, and do not have the user pass it in.
But the local variable will contain nonsense in a push parser, right?
If so, better to omit it for push parsers, so that if a user action
refers to yynerrs we'll get a compile-time error rather than run-time
garbage.
> One issue I had is, now the yyparse function (which calls yypushparse)
> depends on yylex to take 2 parameters. This breaks the small test I have
> that is not in the test suite because my yylex takes nothing. Should we
> force the user to have yylex take these parameters? or should we somehow
> modify yyparse ()?
How about if we call the push-parser lexer "yypushlex" rather than
"yylex"? That would be consistent with renaming yyparse to
yypushparse.
I didn't see any other problems with your patch.
- Re: push parser, (continued)
- Re: push parser, Bob Rossi, 2006/09/27
- Re: push parser, Paul Eggert, 2006/09/27
- Re: push parser, Bob Rossi, 2006/09/27
- Re: push parser, Paul Eggert, 2006/09/27
- Re: push parser, Bob Rossi, 2006/09/27
- Re: push parser, Paul Eggert, 2006/09/28
- Re: push parser, Bob Rossi, 2006/09/29
- Re: push parser, Bob Rossi, 2006/09/29
- Re: push parser,
Paul Eggert <=
- Re: push parser, Bob Rossi, 2006/09/29
- Re: push parser, Paul Eggert, 2006/09/29
- Re: push parser, Bob Rossi, 2006/09/29
Re: push parser, Frans Englich, 2006/09/21