Parsing expression grammar: Difference between revisions

Content deleted Content added
Reguli (talk | contribs)
make line number start from 1
Reguli (talk | contribs)
remove line number completely for consistency
Line 79:
=== Examples ===
This is a PEG that recognizes mathematical formulas that apply the basic five operations to non-negative integers.
<syntaxhighlight lang="peg" line="1" start="1">
Expr ← Sum
Sum ← Product (('+' / '-') Product)*