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.
8639cf6d61
The "buildMessage" utility function, which was previously internal, is now exposed as SyntaxError.buildMessage in generated parsers. The motivation behind this is two-fold: 1. Building of a syntax error message is a responsibility of the SyntaxError class, meaning the code should be placed there. 2. By exposing the message building code, parser users can use it to generate customized error messages without duplicating PEG.js's code. Note that helper functions inside "buildMessage" ("describeExpected", "describeFound", etc.) currently aren't exposed. They may become exposed in the future if there is enough demand. |
9 years ago | |
---|---|---|
.. | ||
passes | 9 years ago | |
asts.js | 9 years ago | |
js.js | 9 years ago | |
opcodes.js | 9 years ago | |
visitor.js | 9 years ago |