A Quick Guide to EBNF Notation

x ::= ...Defines rule x
x yx followed by y
x | yx or y
[ x ]x is optional
{ x }Repeat x zero or more times
“text”Leteral