]> git.saurik.com Git - bison.git/commitdiff
(Invocation, Bison Options): Mention yacc
authorPaul Eggert <eggert@cs.ucla.edu>
Fri, 13 Dec 2002 12:18:31 +0000 (12:18 +0000)
committerPaul Eggert <eggert@cs.ucla.edu>
Fri, 13 Dec 2002 12:18:31 +0000 (12:18 +0000)
as an alias for bison y.

doc/bison.texinfo

index 652da66499ec61cceab649d8de58fe475296cdfd..670a65ba56d0834785e53438c6ec1a2889d10ce6 100644 (file)
@@ -6082,6 +6082,10 @@ bison -d -o @var{output.c++} @var{infile.y}
 @noindent
 will produce @file{output.c++} and @file{outfile.h++}.
 
+For compatibility with @acronym{POSIX}, the standard Bison
+distribution also contains a shell script called @command{yacc} that
+invokes Bison with the @option{-y} option.
+
 @menu
 * Bison Options::     All the options described in detail,
                         in alphabetical order by short options.
@@ -6122,10 +6126,12 @@ Equivalent to @samp{-o y.tab.c}; the parser output file is called
 @file{y.tab.c}, and the other outputs are called @file{y.output} and
 @file{y.tab.h}.  The purpose of this option is to imitate Yacc's output
 file name conventions.  Thus, the following shell script can substitute
-for Yacc:
+for Yacc, and the Bison distribution contains such a script for
+compatibility with @acronym{POSIX}:
 
 @example
-bison -y $*
+#! /bin/sh
+bison -y "$@"
 @end example
 @end table