(bison.info)Grammar Outline


Next: Symbols Up: Grammar File

Outline of a Bison Grammar
==========================

   A Bison grammar file has four main sections, shown here with the
appropriate delimiters:

     %{
     C DECLARATIONS
     %}
     
     BISON DECLARATIONS
     
     %%
     GRAMMAR RULES
     %%
     
     ADDITIONAL C CODE

   Comments enclosed in `/* ... */' may appear in any of the sections.

* C Declarations
Syntax and usage of the C declarations section.
* Bison Declarations
Syntax and usage of the Bison declarations section.
* Grammar Rules
Syntax and usage of the grammar rules section.
* C Code
Syntax and usage of the additional C code section.

automatically generated by info version 1.5

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