David Majda
74830d4f8f
Sort expected strings in the error messages.
15 years ago
David Majda
37521cffa5
Error messages now do not contain duplicities.
15 years ago
David Majda
3291c70d97
Added \uFEFF (BOM) to the definition of whitespace in the metagrammar.
...
The Rhino bug that prevented inclusion of \uFEFF among the whitespace characters
is no longer relevant here because we compile character classes into regexps
now, which avoids the infinite recursion.
15 years ago
David Majda
383c5acaa6
Replaced \xA0 by \u00A0 in the whitespace definition in the metagrammar.
...
This is purely stylistic change.
15 years ago
David Majda
f87bcd6332
Added tests for error messages displayed when a character class match fails.
15 years ago
David Majda
4f4bb34ded
Implemented negative character classes (e.g. [^a-z]).
15 years ago
David Majda
b3381b9352
Fixed test name.
15 years ago
David Majda
22d2ac8ac2
Rewrote implementation of classes to be regexp-based.
15 years ago
David Majda
56ffa94cc7
PEG.buildParser reports left recursion (both direct and indirect).
15 years ago
David Majda
a3ecf768ca
Fixed missing referenced rules test.
15 years ago
David Majda
3a65316416
PEG.buildParser reports missing referenced rules.
15 years ago
David Majda
6bbd88088b
Implemented and used PEG.ArrayUtils.each.
15 years ago
David Majda
2e94dce944
Improved tests of the "arithmetics" grammar.
15 years ago
David Majda
a43d1b33e3
Bootstrapped the grammar parser, yay! I should have done this long ago.
15 years ago
David Majda
636ceb2719
Metagrammar recognizes JavaScript-like comments.
15 years ago
David Majda
452243d450
Improved error reporting for predicates a bit.
15 years ago
David Majda
69906e9730
Do not recognize \uFEFF as whitespace in the metagrammar since it does not work with Rhino.
15 years ago
David Majda
bddb65ab9b
Improved & simplified error handling code.
15 years ago
David Majda
b86a219c86
Ensure that the same grammar and start rule always generate exactly the same parser.
15 years ago
David Majda
c3dd696a3e
Initial commit.
15 years ago