[Top][All Lists]

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: symbol declarations after rules

From: Paul Eggert
Subject: Re: symbol declarations after rules
Date: Thu, 22 Jun 2006 20:15:14 -0700
User-agent: Gnus/5.1008 (Gnus v5.10.8) Emacs/21.4 (gnu/linux)

"Joel E. Denny" <address@hidden> writes:

> To keep things less confusing, the user should be advised to do things 
> either the Yacc way or the new way with order-independent declarations.  

Yes, that makes sense.  How about requiring that?  I.e., report an
error if the user confusingly tries to use both methods.  That way, we
don't have to define what happens after you shoot yourself in the

>   before-header
>   ----------------------------
>   before-definitions
>   Bison-generated union, YYLTYPE, enum, classes
>   after-definitions
>   ----------------------------
>   after-header

This makes things much clearer, thanks.

One notational thought.  Perhaps we should change "before-definitions"
to "start-header", and "after-definitions" to "end-header"?  That
might help people remember better the relationships among the
%*-header directives.  Also, it will give them the pattern "%*-header"
to remember the concepts by.

reply via email to

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