bison-patches
[Top][All Lists]
Advanced

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

Re: [PATCH] %define token.prefix.


From: Paolo Bonzini
Subject: Re: [PATCH] %define token.prefix.
Date: Thu, 13 Nov 2008 15:41:49 +0100
User-agent: Thunderbird 2.0.0.17 (Macintosh/20080914)

Akim Demaille wrote:
> 
> Le 1 sept. 08 à 16:58, Akim Demaille a écrit :
> 
>> Provide a means to add a prefix to the name of the tokens as output in
>> the
>> generated files.  Because of name clashes, it is good to have such a
>> prefix such as TOK_ that protects from names such as EOF, FILE etc.
>> But it clutters the grammar itself.
> 
> Another advantage is with the forthcoming make_<token_name> functions:
> the prefix is then omitted: one use make_NUMBER, make_LPAREN etc.
> instead of make_TOK_NUMBER, make_TOK_LPAREN etc.

Can you make a list of features to backport to C/Java skeletons?

Thanks!

Paolo




reply via email to

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