Node:Grammar Outline, Next:, 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.