David Majda
16f238a64d
Fixed comment heading.
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
db616f0b77
Made the "version" variable scope smaller.
15 years ago
David Majda
c5cc545209
"rake metaparser" and "rake minify" now always generate the target files.
...
Until now, these tasks looked at the file times and generated the target files
only when they were older than the source files. This caused problems when I
mainupulated the lib/metagrammar.* files by hand sometimes, replaced them from
backups after screw-ups, etc.
15 years ago
David Majda
51232fd652
I don't like the .txt extension after all :-)
15 years ago
David Majda
9488291ac0
Converted README to GitHub Flavored Markdown.
...
Also added ".txt" extension to VERSION and LICENSE for more consistency.
15 years ago
David Majda
85bd98d846
Replaced .hgignore with .gitignore.
15 years ago
David Majda
cfd46b622a
Added a benchmark suite.
15 years ago
David Majda
751a33715d
Added example CSS parser.
15 years ago
David Majda
a1adbf0607
Added example JSON parser.
15 years ago
David Majda
20e230ca0e
Killed *MatchFailure classes => simpler code.
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
eae48caf91
Regenerated the grammar parser.
15 years ago
David Majda
2e94dce944
Improved tests of the "arithmetics" grammar.
15 years ago
David Majda
6f510a0336
The cache does not remember match length but next position after the match.
...
This leads to simpler and faster code because it avoids one addition and
subtraction.
15 years ago
David Majda
8f2aa1e834
Fixed a bug in the example grammar where integers beginning with 0 were parsed as octal.
15 years ago
David Majda
aff85fd228
Removed subtraction and division from the example grammar because of wrong associativity.
15 years ago
David Majda
c35417c345
Added tag 0.3 for changeset 6c4975072e03
15 years ago
David Majda
f4e0d0a5ce
Updated version to 0.3.
15 years ago
David Majda
9d239db2d6
Simplified the example arithmetics grammar once more + addded comment.
15 years ago
David Majda
8f3fa8436d
Wrote README.
15 years ago
David Majda
796c98bf8e
Changed order of parameters in the SyntaxError constructor to make creating error with unknown location easier. Also fixes bug with reporting of invalid ranges such as [b-a] in the metagrammar.
15 years ago
David Majda
00a258d246
Renamed "humanName" to "displayName".
15 years ago
David Majda
bdfc2a57e7
Avoid ugliness in QUnit output.
15 years ago
David Majda
d3104742d9
Fixed --start vs. --start-rule inconsistency between help and actual option processing code.
15 years ago
David Majda
a43d1b33e3
Bootstrapped the grammar parser, yay! I should have done this long ago.
15 years ago
David Majda
1ee0049b08
Changed standard grammar extension from .peg to .pegjs (it is more specific).
15 years ago
David Majda
0a5788b50e
Fixed typo in help: "parserVar" -> "parser_var".
15 years ago
David Majda
636ceb2719
Metagrammar recognizes JavaScript-like comments.
15 years ago
David Majda
eade133ea6
Simplified the example arithmetics grammar.
15 years ago
David Majda
d810580232
Added tag 0.2.1 for changeset bf988d46416b
15 years ago
David Majda
1b8e9f55fd
Updated version to 0.2.1.
15 years ago
David Majda
74507d5c12
Added "pegjs-" prefix to the name of the minified runtime file.
15 years ago
David Majda
4d9a31eb99
Added tag 0.2 for changeset 65f6b56a3e6c
15 years ago
David Majda
ea8e25c585
Updated version to 0.2.
15 years ago
David Majda
09c7fb4f33
Added Rakefile that builds minified runtime using Google Closure Compiler API.
15 years ago
David Majda
7bf51eddf0
Removed trailing commas in object initializers (Google Closure does not like them).
15 years ago
David Majda
38dac2382c
Added tag 0.1 for changeset f28e878f6afe
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