bison-patches
[Top][All Lists]
Advanced

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

Re: [PATCH] %define token.prefix.


From: Akim Demaille
Subject: Re: [PATCH] %define token.prefix.
Date: Thu, 13 Nov 2008 17:22:41 +0100


Le 13 nov. 08 à 15:41, Paolo Bonzini a écrit :

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?

Yes, I keep this at hand.  Will sent it at the end :)





reply via email to

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