mirror of
https://git.savannah.gnu.org/git/bison.git
synced 2026-03-09 12:23:04 +00:00
%define token.prefix.
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. * data/bison.m4 (token.prefix): Empty by default. * data/c.m4 (b4_token_enum, b4_token_define): Use it. * data/lalr1.cc (b4_symbol): Ditto.
This commit is contained in:
12
ChangeLog
12
ChangeLog
@@ -1,3 +1,15 @@
|
||||
2008-11-13 Akim Demaille <demaille@gostai.com>
|
||||
|
||||
%define token.prefix.
|
||||
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.
|
||||
|
||||
* data/bison.m4 (token.prefix): Empty by default.
|
||||
* data/c.m4 (b4_token_enum, b4_token_define): Use it.
|
||||
* data/lalr1.cc (b4_symbol): Ditto.
|
||||
|
||||
2008-11-13 Akim Demaille <demaille@gostai.com>
|
||||
|
||||
Compute at M4 time some of the subtractions.
|
||||
|
||||
Reference in New Issue
Block a user