e9cb23608d
This change reflects the fact that PEG.js-generated parsers really produce two kinds of syntax errors: Structured errors Caused by match failures, trailing input, or calls of the "expected" function in parser code. Their messages have fixed format ("Expected ... but ... found."). Simple errors Caused by calls of the "error" function in parser code. Their messages don't have any fixed format. Each kind of error now has a separate helper function which builds its instances. |
||
---|---|---|
.. | ||
compiler | ||
utils | ||
.eslintrc.json | ||
grammar-error.js | ||
parser.js | ||
peg.js |