DOC HOME SITE MAP MAN PAGES GNU INFO SEARCH
 

(bison) Invocation

Info Catalog (bison) Debugging (bison) Top (bison) Table of Symbols
 
 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 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
 
 will produce `infile.tab.cxx' and `infile.tab.hxx', and
 
      bison -d -o OUTPUT.C++ INFILE.Y
 
 will produce `output.c++' and `outfile.h++'.
 

Menu

 
* Bison Options     All the options described in detail,
 			in alphabetical order by short options.
* Option Cross Key  Alphabetical list of long options.
* VMS Invocation    Bison command syntax on VMS.
 
Info Catalog (bison) Debugging (bison) Top (bison) Table of Symbols
automatically generated byinfo2html