|
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 thegenerated 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.
[Prev in Thread] | Current Thread | [Next in Thread] |