]> git.saurik.com Git - bison.git/blobdiff - doc/bison.texinfo
For associating token numbers with token names for "yacc.c", don't use
[bison.git] / doc / bison.texinfo
index 84a7dee83efe73980ae52419419cf68d1e36ff42..f433b712401fe1bec6f248b1e8a784f1dc1502af 100644 (file)
@@ -6830,9 +6830,12 @@ different diagnostics to be generated, and may change behavior in
 other minor ways.  Most importantly, imitate Yacc's output
 file name conventions, so that the parser output file is called
 @file{y.tab.c}, and the other outputs are called @file{y.output} and
 other minor ways.  Most importantly, imitate Yacc's output
 file name conventions, so that the parser output file is called
 @file{y.tab.c}, and the other outputs are called @file{y.output} and
-@file{y.tab.h}.  Thus, the following shell script can substitute
-for Yacc, and the Bison distribution contains such a script for
-compatibility with @acronym{POSIX}:
+@file{y.tab.h}.
+Also, if generating an @acronym{LALR}(1) parser in C, generate @code{#define}
+statements in addition to an @code{enum} to associate token numbers with token
+names.
+Thus, the following shell script can substitute for Yacc, and the Bison
+distribution contains such a script for compatibility with @acronym{POSIX}:
 
 @example
 #! /bin/sh
 
 @example
 #! /bin/sh