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.
f5443d2bf1
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 | 10 years ago | |
css.pegjs | 11 years ago | |
javascript.pegjs | 11 years ago | |
json.pegjs | 11 years ago |