X-Git-Url: https://git.saurik.com/bison.git/blobdiff_plain/9e6e7ed2b275cba4dcc75fca6a8f0768285e4c6b..b931235eb9e55277e0147443f916c0f73ad697c4:/doc/bison.texinfo diff --git a/doc/bison.texinfo b/doc/bison.texinfo index 84a7dee8..f433b712 100644 --- a/doc/bison.texinfo +++ b/doc/bison.texinfo @@ -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 -@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