How to read syntax statements
Last updated
Last updated
Sometimes, in describing the syntax, EBNF-like notation is used, with the following meaning:
To keep this chapter as readable as possible, we have chosen to omit some details that are irrelevant for practically all Ampersand modelers. In the very rare case that these technicalities are of interest, the reader could have a look in the sourcecode of the parser, where all EBNF statements are fully detailed in comments.
Operator
meaning
<foo>?
Zero or one occurrence of <foo>
<foo>+
One or more occurrences of <foo>
<foo>*
Zero or more occurrences of <foo>