Terminal symbols start with lower case letter (for example
ident) or are written in bold (the so-called »reserved words«).
-
[ … ]: optional, zero or one time
-
{ … }: repetition, zero, one or more times
-
( … ): grouping
-
|: alternative, either the left or the right site
-
,: addition (stronger than alterntive)
-
0 |…| 9: range of values
-
"text": Terminal symbols (for example "if") are quoted so that also characters that are used for EBNF can be defined
-
.: Each rule has an explicit final character to make it clear where the rule ends.