You cannot select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
David Majda f5443d2bf1 Complete rewrite of the arithmetics example grammar
This is a complete rewrite of the arithmetics example grammar. It now
allows whitespace between tokens, supports "-" and "/" operators, and
gets the operator associativity right. Also, rule names now match the usual
conventions (term, factor,...).

Beside this, the rewrite reflects how I write grammars today (as opposed
to few years ago) and what style I would recommend to others.
10 years ago
..
arithmetics.pegjs Complete rewrite of the arithmetics example grammar 10 years ago
css.pegjs Example grammars: Improve |parseInt| invocations 11 years ago
javascript.pegjs Example grammars: Improve |parseInt| invocations 11 years ago
json.pegjs Example grammars: Improve |parseInt| invocations 11 years ago