pegjs/examples
David Majda 10d7a6aded Simplify the arithmetics example grammar
The arithmetics example grammar is the first thing everyone sees in the
online editor at the PEG.js website, but it begins with a complicated
|combine| function in the initializer. Without understanding it it is
impossible to understand code in the actions. This may be a barrier to
learning how PEG.js works.

This commit removes the |combine| function and gets rid of the whole
initializer, removing the learning obstacle and streamlining action
code. The only cost is a slight code duplication.
2015-10-09 16:34:19 +02:00
..
arithmetics.pegjs Simplify the arithmetics example grammar 2015-10-09 16:34:19 +02:00
css.pegjs Quote |class| object literal key 2015-08-21 16:36:43 +02:00
javascript.pegjs Update character categories in grammars to Unicode 8.0.0 2015-08-06 16:42:26 +02:00
json.pegjs Complete rewrite of the JSON example grammar 2014-03-14 14:28:10 +01:00