Yacc Specifications[slide by John Werth.]
%{ declarations %}
tokens
%%
translation rules
%%
auxiliary procedures
- declarations: #include and manifest constants (identifier
declared to represent a constant).
- tokens: %token declarations used in the second section.
Each token is defined as a constant (integer > 255).
- translation rules: pattern / action pairs
- auxiliary procedures: arbitrary C functions copied directly into
the generated lexical analyzer.
Contents   
Page-10   
Prev   
Next   
Page+10   
Index