Buy the book!
|[ < ]||[ > ]||[ << ]||[ Up ]||[ >> ]||[Top]||[Contents]||[Index]||[ ? ]|
The usual way to invoke Bison is as follows:
Here infile is the grammar file name, which usually ends in `.y'. The parser file's name is made by replacing the `.y' with `.tab.c'. Thus, the `bison foo.y' filename yields `foo.tab.c', and the `bison hack/foo.y' filename yields `hack/foo.tab.c'. It's also possible, in case you are writing C++ code instead of C in your grammar file, to name it `foo.ypp' or `foo.y++'. Then, the output files will take an extension like the given one as input (respectively `foo.tab.cpp' and `foo.tab.c++'). This feature takes effect with all options that manipulate filenames like `-o' or `-d'.
For example :
bison -d infile.yxx
bison -d -o output.c++ infile.y
For compatibility with POSIX, the standard Bison
distribution also contains a shell script called
invokes Bison with the `-y' option.
9.1 Bison Options All the options described in detail, in alphabetical order by short options. 9.2 Option Cross Key Alphabetical list of long options. 9.3 Yacc Library Yacc-compatible
|webmaster donations bookstore||delorie software privacy|
|Copyright © 2003 by The Free Software Foundation||Updated Jun 2003|