Contents | < Browse | Browse >
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.

* Menu:

* 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.