Context-Free Grammars (Cont.)
Syntax Diagram
Graphical representations for visually representing EBNF rules are called syntax diagram.
The syntax diagram of Pascal uses the following notations:
- Round or oval boxes, which are terminal symbols.
- Square or rectangular boxes, which are nonterminal symbols.
- Arrowed lines, which are sequencing and choices.
- Nonterminal labels, which are the grammar rule defining that nonterminal symbols:
- Repetition and option:
- More examples: