pegjs/lib/compiler
David Majda 25ab98027d Remove info about found string from syntax errors
The |found| property wasn't very useful as it mostly contained just one
character or |null| (the exception being syntax errors triggered by
|error| or |expected|). Similarly, the "but XXX found" part of the error
message (based on the |found| property) wasn't much useful and was
redundant in presence of location info.

For these reasons, this commit removes the |found| property and
corresponding part of the error message from syntax errors. It also
modifies error location info slightly to cover a range of 0 characters,
not 1 character (except when the error is triggered by |error| or
|expected|). This corresponds more precisely to the actual situation.

Fixes #372.
2015-09-18 10:01:15 -07:00
..
passes Remove info about found string from syntax errors 2015-09-18 10:01:15 -07:00
asts.js s/alwaysAdvancesOnSuccess/alwaysConsumesOnSuccess/ 2015-09-04 17:35:37 +02:00
js.js Rename javascript.js to js.js 2015-09-04 15:38:17 +02:00
opcodes.js Fix comment typo 2015-08-18 10:58:22 +02:00
visitor.js Convert PEG.js code to strict mode 2015-06-12 17:34:59 -07:00