Next: , Previous: Prologue, Up: Grammar File


2.3 Declarations

The declarations section contains declarations that define terminal symbols, specify precedence, and so on. In some simple grammars you may not need any declarations.

Declarations of terminal symbols defines the symbols used in formulating the grammar and the type associated to categories of tokens (see Terminal and Nonterminal Symbols).