Rename token.prefix as api.tokens.prefix.

Discussed here.
http://lists.gnu.org/archive/html/bison-patches/2009-05/msg00024.html.

	* NEWS, data/bison.m4, data/c.m4, data/java.m4, doc/bison.texinfo,
	* tests/c++.at, tests/calc.at, tests/java.at, tests/local.at
	(token.prefix): Rename as...
	(api.tokens.prefix): this.
This commit is contained in:
Akim Demaille committed 2009-05-15 16:10:52 +02:00
1 parent 3c248d705d
commit 4c6622c2dd
10 files changed
+67 -55

No files matched your search

+3 -3
View File
@@ -9,14 +9,14 @@ Bison News
Also, it is possible to add code to the parser's constructors using
"%code init" and "%define init_throws".
** Variable token.prefix
** Variable api.tokens.prefix
The variable token.prefix changes the way tokens are identified in
The variable api.tokens.prefix changes the way tokens are identified in
the generated files. This is especially useful to avoid collisions
with identifiers in the target language. For instance
%token FILE for ERROR
%define token.prefix "TOK_"
%define api.tokens.prefix "TOK_"
%%
start: FILE for ERROR;