| www.delorie.com/gnu/docs/bison/bison_101.html | search |
![]() Buy the book! | |
| [ < ] | [ > ] | [ << ] | [ Up ] | [ >> ] | [Top] | [Contents] | [Index] | [ ? ] |
Bison supports both traditional single-letter options and mnemonic long option names. Long option names are indicated with `--' instead of `-'. Abbreviations for option names are allowed as long as they are unique. When a long option takes an argument, like `--file-prefix', connect the option name and the argument with `='.
Here is a list of options that can be used with Bison, alphabetized by short option. It is followed by a cross key alphabetized by long option.
Operations modes:
#! /bin/sh bison -y "$@" |
Tuning the parser:
YYDEBUG to 1 if it is not
already defined, so that the debugging facilities are compiled.
See section Tracing Your Parser.
%locations was specified. See section 3.7.9 Bison Declaration Summary.
%name-prefix="prefix" was specified.
See section 3.7.9 Bison Declaration Summary.
#line preprocessor commands in the parser file.
Ordinarily Bison puts them in the parser file so that the C compiler
and debuggers will associate errors with your source file, the
grammar file. This option causes them to associate errors with the
parser file, treating it as an independent source file in its own right.
%no-parser was specified. See section 3.7.9 Bison Declaration Summary.
%token-table was specified. See section 3.7.9 Bison Declaration Summary.
Adjust the output:
%defines was specified, i.e., write an extra output
file containing macro definitions for the token type names defined in
the grammar and the semantic value type YYSTYPE, as well as a few
extern variable declarations. See section 3.7.9 Bison Declaration Summary.
%verbose was specified, i.e, specify prefix to use
for all Bison output file names. See section 3.7.9 Bison Declaration Summary.
state
lookahead
state and augments the description of the automaton with
each rule's lookahead set.
itemset
state and augments the description of the automaton with
the full set of items for each state, instead of its core only.
For instance, on the following grammar
%verbose was specified, i.e, write an extra output
file containing verbose descriptions of the grammar and
parser. See section 3.7.9 Bison Declaration Summary.
The other output files' names are constructed from filename as described under the `-v' and `-d' options.
| [ < ] | [ > ] | [ << ] | [ Up ] | [ >> ] | [Top] | [Contents] | [Index] | [ ? ] |
| webmaster donations bookstore | delorie software privacy |
| Copyright © 2003 by The Free Software Foundation | Updated Jun 2003 |