27c2d26203
Initializer and rules are now separated in a similar way as JavaScript statements -- either by a semicolon or a line terminator, possibly with whitespace and comments mixed in. One consequence is that the grammars like this are now illegal: foo = "a" bar = "b" A semicolon needs to be inserted between the rules: foo = "a";bar = "b" I consider this a good change as the now-illegal syntax was somewhat confusing. |
||
---|---|---|
.. | ||
compiler | ||
compiler.js | ||
grammar-error.js | ||
parser.js | ||
peg.js | ||
utils.js |