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 ae89f5e469 PEG.js grammar: Change whitespace handling
Before this commit, whitespace was handled at the lexical level by
making tokens consume any whitespace coming after them. This was
accomplished by appending |__| to every token rule.

This commit changes whitespace handling to be more explicit. Tokens no
longer consume whitespace coming after them and syntactic rules have to
cope with it. While this slightly complicates the syntactic grammar, I
think it's a cleaner way. Moreover, it is what JavaScript example
grammar does.

One small side-effect of thich change is that the grammar is now
stand-alone (it doesn't require utils.js anymore).
10 years ago
..
compiler PEG.js grammar: Disallow empty sequences 10 years ago
compiler.js .jshintrc: Add the "forin" option & fix fallout 11 years ago
grammar-error.js Git repo npmization: Make the repo a npm package 12 years ago
parser.js PEG.js grammar: Change whitespace handling 10 years ago
peg.js Update version to 0.8.0 11 years ago
utils.js .jshintrc: Add the "forin" option & fix fallout 11 years ago