GNU Info

Info Node: (bison.info)Grammar File

(bison.info)Grammar File


Next: Interface Prev: Examples Up: Top
Enter node , (file) or (file)node

Bison Grammar Files
*******************

   Bison takes as input a context-free grammar specification and
produces a C-language function that recognizes correct instances of the
grammar.

   The Bison grammar input file conventionally has a name ending in
`.y'.  Note: Invoking Bison.

Grammar Outline
Overall layout of the grammar file.
Symbols
Terminal and nonterminal symbols.
Rules
How to write grammar rules.
Recursion
Writing recursive rules.
Semantics
Semantic values and actions.
Locations
Locations and actions.
Declarations
All kinds of Bison declarations are described here.
Multiple Parsers
Putting more than one Bison parser in one program.

automatically generated by info2www version 1.2.2.9