help-bison
[Top][All Lists]
Advanced

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

Re: RFC: enum instead of #define for tokens


From: Akim Demaille
Subject: Re: RFC: enum instead of #define for tokens
Date: 05 Apr 2002 13:02:04 +0200
User-agent: Gnus/5.0808 (Gnus v5.8.8) XEmacs/21.4 (Common Lisp)

>>>>> "Anthony" == Anthony DeRobertis <address@hidden> writes:

Anthony> On Friday, April 5, 2002, at 03:32 AM, Akim Demaille wrote:

>> that's why I have snippets like this in some of my parsers:
>> 
>> | %token COMMA ","
>> 
Anthony> I had forgotten about that feature. Thanks for reminding me.

Anthony> That is a very good alternative to char tokens. 

It's more than an alternative, it's a generalization of the comfort
for writing the grammars.

Anthony> Though I don't see what's inherently evil about char tokens,

There is just no added power.

Anthony> and getting rid of them would break a lot of grammars,
Anthony> methinks.

I certainly will not remove this feature!  I just won't do any efforts
for Unicode.



reply via email to

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