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 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".
8 years ago
..
generate-bytecode.js Expectation refactoring 2/7: Restructure "class" expectations 8 years ago
generate-js.js Expectation refactoring 3/7: Change expectation processing 8 years ago
remove-proxy-rules.js Convert PEG.js code to strict mode 9 years ago
report-infinite-loops.js Report left recursion and infinite loops only as "possible" 9 years ago
report-left-recursion.js Report full rule chain in recursive rule errors 9 years ago
report-missing-rules.js Convert PEG.js code to strict mode 9 years ago