pegjs/lib
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).
2014-04-04 11:25:20 +02:00
..
compiler PEG.js grammar: Disallow empty sequences 2014-04-04 11:25:20 +02:00
compiler.js .jshintrc: Add the "forin" option & fix fallout 2013-12-14 21:50:43 +01:00
grammar-error.js Git repo npmization: Make the repo a npm package 2012-11-10 14:21:14 +01:00
parser.js PEG.js grammar: Change whitespace handling 2014-04-04 11:25:20 +02:00
peg.js Update version to 0.8.0 2013-12-24 08:24:35 +01:00
utils.js .jshintrc: Add the "forin" option & fix fallout 2013-12-14 21:50:43 +01:00