From: Akim Demaille Date: Mon, 1 Sep 2008 14:58:13 +0000 (+0200) Subject: %define token.prefix. X-Git-Tag: v2.7.90~1048 X-Git-Url: https://git.saurik.com/bison.git/commitdiff_plain/5679f31101d0bc5aab6adbce37212b2fdedd32cd?ds=inline;hp=5679f31101d0bc5aab6adbce37212b2fdedd32cd %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. ---