pegjs/lib
David Majda 22cb123479 Expectation refactoring 3/7: Change expectation processing
Before this commit, expectations were sorted and de-duplicated before
they were passed to "buildMessage" and exposed in the "expected"
property of syntax errors. This commit moves this processing into
"buildMessage" and rewrites it to process only expectation descriptions.
This means expectations exposed in the "expected" property are "raw"
(not sorted and de-duplicated).

This change will allow us to get rid of the "description" property of
expectations and compute descriptions dynamically from structured
information in the expectations. This will make descriptions a
presentation-only concept. It will also make generated parsers smaller.

Note that to keep expectations in the "expected" property sorted even
without the "description" property, some sorting scheme based on
structured information in the expectations would have to be devised,
which would complicate things with only a little benefit. Therefore I
chose to keep the expectations there "raw".
2016-06-17 19:19:28 +02:00
..
compiler Expectation refactoring 3/7: Change expectation processing 2016-06-17 19:19:28 +02:00
utils Remove trailing commas in object literals 2015-08-21 16:02:13 +02:00
.eslintrc.json ESLint: Set environments better 2016-01-29 14:50:38 +01:00
compiler.js Rename the "PEG" variable to "peg" 2016-05-04 12:37:13 +02:00
grammar-error.js Merge pull request #347 from mbaumgartl/errorstack 2015-07-03 13:05:41 +02:00
parser.js Don't use the "i" suffix for case-insensitive class descriptions 2016-06-13 10:41:15 +02:00
peg.js Rename the "buildParser" function to "generate" 2016-05-04 14:01:14 +02:00