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 8639cf6d61 Expectation refactoring 6/7: Move "buildMessage" to SyntaxError
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
..
compiler Expectation refactoring 6/7: Move "buildMessage" to SyntaxError 9 years ago
utils Remove trailing commas in object literals 9 years ago
.eslintrc.json ESLint: Set environments better 9 years ago
compiler.js Rename the "PEG" variable to "peg" 9 years ago
grammar-error.js Merge pull request #347 from mbaumgartl/errorstack 9 years ago
parser.js Don't use the "i" suffix for case-insensitive class descriptions 9 years ago
peg.js Rename the "buildParser" function to "generate" 9 years ago