pegjs/spec/compiler/passes
David Majda af701dcf80 Error handling: Implement the |expected| function
The |expected| function allows users to report regular match failures
inside actions.

If the |expected| 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 in the usual "Expected ... but found ..." format
with the description specified in the |expected| call used as part of
the message.

Implements part of #198.

Speed impact
------------
Before:     1146.82 kB/s
After:      1031.25 kB/s
Difference: -10.08%

Size impact
-----------
Before:     950817 b
After:      973269 b
Difference: 2.36%

(Measured by /tools/impact with Node.js v0.6.18 on x86_64 GNU/Linux.)
2013-12-01 16:12:35 +01:00
..
generate-bytecode.spec.js Error handling: Implement the |expected| function 2013-12-01 16:12:35 +01:00
remove-proxy-rules.spec.js Plugin API: Split compiler passes into stages 2013-01-13 19:08:06 +01:00
report-left-recursion.spec.js Plugin API: Split compiler passes into stages 2013-01-13 19:08:06 +01:00
report-missing-rules.spec.js Plugin API: Split compiler passes into stages 2013-01-13 19:08:06 +01:00