Professional Documents
Culture Documents
BNF Grammar For PL
BNF Grammar For PL
--------------------
<adding-operator> ::= + | -
<multiplying-operator> ::= * | /
Notes.
(1) "e" denotes the empty string.
(2) <ident> and <number> are tokens representing identifiers and
numbers,
respectively.
<adding-operator> ::= + | -
<multiplying-operator> ::= * | /
Notes.
(1) Optional constructions are enclosed in square brackets ([]).
(2) Constructs repeated zero or more times are enclosed in curly
brackets ({}).