Content deleted Content added
Merge and sharpen categories. |
→Example parser: Made it clearer that ident and number are assumed to be terminals |
||
Line 13:
== Example parser ==
The following [[EBNF]] [[grammar]] (for [[Niklaus Wirth]]'s [[PL/0]] programming language, from
[[Algorithms + Data Structures = Programs]]) is in [[LL parser|LL(1)]] form
and ''number'' are assumed to be terminals):
<pre>
Line 43 ⟶ 44:
</pre>
[[Terminal symbol|Terminals]] are expressed in quotes (except for
and ''number''). Each [[nonterminal]] is defined by a rule in the grammar.
|