[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

> 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

I didn't see any other problems with your patch.

reply via email to

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