(bison.info)Invocation


Next: Table of Symbols Prev: Debugging Up: Top

Invoking Bison
**************

   The usual way to invoke Bison is as follows:

     bison INFILE

   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 is 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
extention like the given one as input (repectively `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

will produce `infile.tab.cxx' and `infile.tab.hxx'. and

     bison -d INFILE.Y -o OUTPUT.C++

will produce `output.c++' and `outfile.h++'.

* Bison Options
All the options described in detail, in alphabetical order by short options.
* Environment Variables
Variables which affect Bison execution.
* Option Cross Key
Alphabetical list of long options.
* Extension Limitations Under DOS
Bison output files extension differences depending on the DOS/Windows file system flavour used.
* VMS Invocation
Bison command syntax on VMS.

automatically generated by info version 1.5

Dirfile and infopages generated Sat Dec 3 02:07:54 2005