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 5460a881af Error handling: Implement the |error| function
The |error| function allows users to report custom match failures inside
actions.

If the |error| function is called, and the reported match failure turns
out to be the cause of a parse error, the error message reported by the
parser will be exactly the one specified in the |error| call.

Implements part of #198.

Speed impact
------------
Before:     999.83 kB/s
After:      1000.84 kB/s
Difference: 0.10%

Size impact
-----------
Before:     1017212 b
After:      1019968 b
Difference: 0.27%

(Measured by /tools/impact with Node.js v0.6.18 on x86_64 GNU/Linux.)
11 years ago
..
compiler Error handling: Implement the |error| function 11 years ago
compiler.js Plugin API: Split compiler passes into stages 12 years ago
grammar-error.js Git repo npmization: Make the repo a npm package 12 years ago
parser.js Error handling: Implement the |error| function 11 years ago
peg.js Plugin API: Split compiler passes into stages 12 years ago
utils.js Fix typo in comment 11 years ago