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 07:21:04 +0100


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.





reply via email to

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