wikipeg 4.0.2 → 6.0.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (37) hide show
  1. package/HISTORY.md +556 -0
  2. package/README.md +230 -12
  3. package/VERSION +1 -1
  4. package/bin/wikipeg +8 -4
  5. package/examples/css.pegphp +9 -8
  6. package/lib/compiler/asts.js +30 -10
  7. package/lib/compiler/charsets.js +306 -0
  8. package/lib/compiler/language/javascript.js +107 -33
  9. package/lib/compiler/language/php.js +193 -55
  10. package/lib/compiler/passes/analyze-always-match.js +141 -0
  11. package/lib/compiler/passes/analyze-first.js +245 -0
  12. package/lib/compiler/passes/ast-to-code.js +316 -100
  13. package/lib/compiler/passes/inline-simple-rules.js +96 -0
  14. package/lib/compiler/passes/optimize-character-class.js +147 -0
  15. package/lib/compiler/passes/optimize-failure-reporting.js +65 -0
  16. package/lib/compiler/passes/remove-proxy-rules.js +7 -5
  17. package/lib/compiler/passes/report-infinite-loops.js +4 -1
  18. package/lib/compiler/passes/report-left-recursion.js +3 -4
  19. package/lib/compiler/passes/report-unknown-attributes.js +39 -0
  20. package/lib/compiler/passes/transform-common-lang.js +1 -1
  21. package/lib/compiler/traverser.js +1 -2
  22. package/lib/compiler/visitor.js +5 -7
  23. package/lib/compiler.js +24 -10
  24. package/lib/parser.js +2784 -3088
  25. package/lib/peg.js +7 -15
  26. package/lib/runtime/template.js +9 -1
  27. package/lib/utils/CaseFolding.txt +1654 -0
  28. package/lib/utils/arrays.js +0 -72
  29. package/lib/utils/casefold.js +697 -0
  30. package/lib/utils/objects.js +9 -39
  31. package/lib/utils/unicode.js +34 -0
  32. package/package.json +6 -4
  33. package/src/DefaultTracer.php +18 -18
  34. package/src/PEGParserBase.php +53 -28
  35. package/src/SyntaxError.php +4 -4
  36. package/src/Tracer.php +1 -1
  37. package/lib/compiler/opcodes.js +0 -54
package/HISTORY.md ADDED
@@ -0,0 +1,556 @@
1
+ # Release History
2
+
3
+ ## 6.0.0 (2025-08-14)
4
+ * Bump minimum required PHP version to 8.1
5
+ * Zero-or-more or one-or-more repetitions of character classes are now
6
+ optimized using a regular expression match of multiple characters,
7
+ which can greatly increase performance.
8
+ * Simple rules (character classes, repetitions of character classes)
9
+ are now inlined by default, which can reduce the memory used by the
10
+ backtracking cache and increase performance.
11
+ * Backtracking out of a failed rule will now erase the effects on rule
12
+ reference variables, in the same way that it restores the value of
13
+ non-reference parser rule variables.
14
+ * Bug fix to default array creation for sequence rules
15
+ * New options to PEG compiler: `allowLoops`, `commonLang`,
16
+ `noInlining`, `allowUselessChoice`, and `noAlwaysMatch`.
17
+ * Remove unnecessary failure-reporting checks (T224086)
18
+ * Remove failure checks on rules which always match
19
+ * Implemented Unicode Simple Case Folding algorithm for
20
+ case-insensitive matches, and the `caselessRestrict`
21
+ option to modify this for ASCII ranges.
22
+ * Optimize match failure where it is possible to determine that a
23
+ match is impossible by looking only at the first character of the
24
+ match.
25
+ * Add picked operator (`@`).
26
+ * Add rule attributes: [name], [inline], [cache], [empty], [unreachable]
27
+ * Deprecate old `rule "name" = ...` syntax for named rules in favor of
28
+ `rule [name="name"] = ...`.
29
+
30
+ ## 5.0.0 (2025-04-28)
31
+ * Improve function and property documentation
32
+ * Mark some DefaultTracer methods as protected
33
+ * PHP dependency updates (mediawiki-codesniffer, php-parallel-lint, minus-x,
34
+ phpunit, mediawiki-phan-config)
35
+ * JS dependency updates (eslint, requirejs, cross-spawn)
36
+
37
+ ## 4.0.2 (2025-04-28)
38
+ * Same as 4.0.0
39
+
40
+ ## 4.0.1 (2025-04-28)
41
+ * Unpublished.
42
+
43
+ ## 4.0.0 (2024-03-04)
44
+ * Use a class instead of an assoc array for cache entry
45
+ * Switch phan to special library mode
46
+ * PHP dependency updates (mediawiki-codesniffer, mediawiki-phan-config, phpunit)
47
+ * JS dependency updates (eslint, word-wrap)
48
+
49
+ ## 3.0.0 (2022-11-10)
50
+ * Drop class aliases for old \WikiPEG namespace.
51
+ * Bump minimum required PHP version to 7.4.3.
52
+ * Dependency updates (ansi-regex, eslint, minimatch; mediawiki-codesniffer,
53
+ mediawiki-phan-config, covers-validator, php-parallel-lint).
54
+ * This release should also be compatible with PHP 8.1.
55
+
56
+ ## 2.0.6 (2021-08-07)
57
+ * Changed package namespace from WikiPEG to Wikimedia\WikiPEG to match
58
+ composer package name. PHP's `class_alias` has been used so that existing
59
+ code using the old namespace will continue to work, but this is now
60
+ deprecated; it is expected that the next major release of WikiPEG will
61
+ remove the aliases.
62
+ * Dependency updates.
63
+ * Added a place in the template to add header comments.
64
+ * Add phpcs and reformat PHP code to MediaWiki codestyle.
65
+ * Add phan and fix minor issues.
66
+
67
+ ## 2.0.5 (2020-12-17)
68
+ * Add PHP 8.0 support plus better CI tests for the PHP code.
69
+
70
+ ## 2.0.4 (2020-02-13)
71
+ * Add .gitattributes file to reduce downloaded cruft when imported as a
72
+ library.
73
+ * Fix an obscure bug when the grammar contains cycles.
74
+ * Fix DefaultTracer: the location is a LocationRange object now.
75
+
76
+ ## 2.0.3 (2019-04-25)
77
+ * Move spec to tests/jasmine.
78
+ * Fix to error construction.
79
+ * Fix expectation sorting.
80
+ * Another fix for the ast.initializer format change.
81
+ * SyntaxError: correctly call parent constructor.
82
+ * Fix encoding of astral plane characters in string literals (PHP backend)
83
+ * Fix missing bracket in matchLiteral() (PHP backend)
84
+ * Add cross-language testing and fix JS generator bugs identified by it.
85
+ * Classes for Location, LocationRange, and Expectation (PHP backend)
86
+ * Fix TestRunner error() call
87
+ * Simplify loops zero_or_more and one_or_more
88
+ * Fix caching of reference rule variables.
89
+ * Better default keys for PHP and JS.
90
+
91
+ ## 2.0.2 (2019-04-25)
92
+ There is no 2.0.2.
93
+
94
+ ## 2.0.1 (2019-03-28)
95
+ Fix visitor for new multiple initializer feature
96
+
97
+ ast.initializer is now the same as before if there are 0 or 1
98
+ initializers, and an array if there are 2 or more. Update visitor for
99
+ this. During development I initially made it be an array
100
+ unconditionally, but I changed it to this more compatible format shortly
101
+ before merging in order to make the tests pass, but neglected to update
102
+ visitor.
103
+
104
+ ## 2.0.0 (2019-03-11)
105
+ PHP backend
106
+
107
+ Add a PHP code generation mode.
108
+
109
+ Mapping overview:
110
+
111
+ * File extension .pegphp hints to the binary that PHP is to be generated
112
+ * Generated PHP code depends on a PSR-4 runtime library directory. I
113
+ used "src" for this, and moved the one file that was there out to
114
+ lib/.
115
+ * JavaScript's enclosing scope is generally replaced by private and
116
+ protected members of the generated class or its parent. For example,
117
+ input becomes $this->input.
118
+ * PHP's offsets are byte offsets, not UTF-16 offsets as in JS. Rules
119
+ such as . (any) return a full UTF-8 character, by means of our own
120
+ simple UTF-8 decoder.
121
+ * The AST initializer is placed inside the definition of the generated
122
+ class, so private function declarations are appropriate, and
123
+ $this->input etc. is accessible.
124
+ * Actions and semantic predicates become private methods.
125
+
126
+ Changes:
127
+
128
+ * Add ported examples for arithmetic and CSS
129
+ * Remove the ability to run the generator in the browser. It is probably
130
+ still possible to use generated parsers in the browser.
131
+ * Merge common-helpers, trace-helpers and wrapper.js into a single
132
+ template file. The helper files were mostly there to support the
133
+ browser mode.
134
+ * Give actions a separate namespace from consts, since it's not
135
+ convenient in PHP to treat a function as a variable.
136
+ * To run the start rule, instead of a hashtable of closures, use a
137
+ switch statement. This is simpler and works in both languages. The
138
+ hashtable of closures made more sense when it was possible to run
139
+ start rules directly, but now we have to supply default parameters for
140
+ them, so there was already an extra proxy closure.
141
+ * Use template literals throughout, since they look very nice in this
142
+ use case and are presumably efficient.
143
+ * For streaming mode, use a generator instead of an iterator, since PHP
144
+ has generators using similar syntax to ES6, whereas PHP's iterator
145
+ syntax is quite different.
146
+ * Make the version 2.0.0.
147
+
148
+ ## 1.0.2 (2019-03-11)
149
+ * Fix file list in package.json and increment version.
150
+
151
+ ## 1.0.0 (2019-02-08)
152
+ * Call this WikiPEG 1.0.0.
153
+ * Rename the binary and NPM project.
154
+ * Remove documentation of the browser target since this is
155
+ now unmaintained.
156
+ * Require Node.js 6+, like Parsoid. The upcoming feature commit will use
157
+ some ES6 features.
158
+ * Retain the file extension .pegjs for now.
159
+
160
+ ## 0.8.0 (December 24, 2013)
161
+
162
+ ### Big Changes
163
+
164
+ * Completely rewrote the code generator. Among other things, it allows
165
+ optimizing generated parsers for parsing speed or code size using the
166
+ `optimize` option of the `PEG.buildParser` method or the `--optimize`/`-o`
167
+ option on the command-line. All internal identifiers in generated code now
168
+ also have a `peg$` prefix to discourage their use and avoid conflicts.
169
+ [[#35](https://github.com/dmajda/pegjs/issues/35),
170
+ [#92](https://github.com/dmajda/pegjs/issues/92)]
171
+
172
+ * Completely redesigned error handling. Instead of returning `null` inside
173
+ actions to indicate match failure, new `expected` and `error` functions can
174
+ be called to trigger an error. Also, expectation inside the `SyntaxError`
175
+ exceptions are now structured to allow easier machine processing.
176
+ [[#198](https://github.com/dmajda/pegjs/issues/198)]
177
+
178
+ * Implemented a plugin API. The list of plugins to use can be specified using
179
+ the `plugins` option of the `PEG.buildParser` method or the `--plugin`
180
+ option on the command-line. Also implemented the `--extra-options` and
181
+ `--extra-options-file` command-line options, which are mainly useful to pass
182
+ additional options to plugins.
183
+ [[#106](https://github.com/dmajda/pegjs/issues/106)]
184
+
185
+ * Made `offset`, `line` and `column` functions, not variables. They are now
186
+ available in all parsers and return lazily-computed position data. Removed
187
+ now useless `trackLineAndColumn` option of the `PEG.buildParser` method and
188
+ the `--track-line-and-column` option on the command-line.
189
+
190
+ * Added a new `text` function. When called inside an action, it returns the
191
+ text matched by action's expression.
192
+ [[#131](https://github.com/dmajda/pegjs/issues/131)]
193
+
194
+ * Added a new `$` operator. It extracts matched strings from expressions.
195
+
196
+ * The `?` operator now returns `null` on unsuccessful match.
197
+
198
+ * Predicates now always return `undefined`.
199
+
200
+ * Replaced the `startRule` parameter of the `parse` method in generated
201
+ parsers with more generic `options` parameter. The start rule can now be
202
+ specified as the `startRule` option. The `options` parameter can be also
203
+ used to pass custom options to the parser because it is visible as the
204
+ `options` variable inside parser code.
205
+ [[#37](https://github.com/dmajda/pegjs/issues/37)]
206
+
207
+ * The list of allowed start rules of a generated parser now has to be
208
+ specified explicitly using the `allowedStartRules` option of the
209
+ `PEG.buildParser` method or the `--allowed-start-rule` option on the
210
+ command-line. This will make certain optimizations like rule inlining easier
211
+ in the future.
212
+
213
+ * Removed the `toSource` method of generated parsers and introduced a new
214
+ `output` option of the `PEG.buildParser` method. It allows callers to
215
+ specify whether they want to get back the parser object or its source code.
216
+
217
+ * The source code is now a valid npm package. This makes using development
218
+ versions easier.
219
+ [[#32](https://github.com/dmajda/pegjs/issues/32)]
220
+
221
+ * Generated parsers are now ~25% faster and ~62%/~3% smaller (when optimized
222
+ for size/speed) than those generated by 0.7.0.
223
+
224
+ * Requires Node.js 0.8.0+.
225
+
226
+ ### Small Changes
227
+
228
+ * `bin/pegjs` now outputs just the parser source if the value of the
229
+ `--export-var` option is empty. This makes embedding generated parsers into
230
+ other files easier.
231
+ [[#143](https://github.com/dmajda/pegjs/issues/143)]
232
+
233
+ * Changed the value of the `name` property of `PEG.GrammarError` instances
234
+ from “PEG.GrammarError” to just “GrammarError”. This better reflects the
235
+ fact that PEG.js can get required with different variable name than `PEG`.
236
+
237
+ * Setup prototype chain for `PEG.GrammarError` correctly.
238
+
239
+ * Setup prototype chain for `SyntaxError` in generated parsers correctly.
240
+
241
+ * Fixed error messages in certain cases with trailing input
242
+ [[#119](https://github.com/dmajda/pegjs/issues/119)]
243
+
244
+ * Fixed code generated for classes starting with `\^`.
245
+ [[#125](https://github.com/dmajda/pegjs/issues/125)]
246
+
247
+ * Fixed too eager proxy rules removal.
248
+ [[#137](https://github.com/dmajda/pegjs/issues/137)]
249
+
250
+ * Added a license to all vendored libraries.
251
+ [[#207](https://github.com/dmajda/pegjs/issues/207)]
252
+
253
+ * Converted the test suite from QUnit to Jasmine, cleaning it up on the way.
254
+
255
+ * Travis CI integration.
256
+
257
+ * Various internal code improvements and fixes.
258
+
259
+ * Various generated code improvements and fixes.
260
+
261
+ * Various example grammar improvements and fixes.
262
+
263
+ * Improved `README.md`.
264
+
265
+ * Converted `CHANGELOG` to Markdown.
266
+
267
+ ## 0.7.0 (April 18, 2012)
268
+
269
+ ### Big Changes
270
+
271
+ * Added ability to pass options to `PEG.buildParser`.
272
+
273
+ * Implemented the `trackLineAndColumn` option for `PEG.buildParser` (together
274
+ with the `--track-line-and-column` command-line option). It makes the
275
+ generated parser track line and column during parsing. These are made
276
+ available inside actions and predicates as `line` and `column` variables.
277
+
278
+ * Implemented the `cache` option for `PEG.buildParser` (together with the
279
+ `--cache` command-line option). This option enables/disables the results
280
+ cache in generated parsers, resulting in dramatic speedup when the cache is
281
+ disabled (the default now). The cost is breaking the linear parsing time
282
+ guarantee.
283
+
284
+ * The current parse position is visible inside actions and predicates as the
285
+ `offset` variable.
286
+
287
+ * Exceptions thrown by the parser have `offset`, `expected` and `found`
288
+ properties containing machine-readable information about the parse failure
289
+ (based on a patch by Marcin Stefaniuk).
290
+
291
+ * Semantic predicates have access to preceding labels.
292
+ [[GH-69](https://github.com/dmajda/pegjs/issues/69)]
293
+
294
+ * Implemented case-insensitive literal and class matching.
295
+ [[GH-34](https://github.com/dmajda/pegjs/issues/34)]
296
+
297
+ * Rewrote the code generator — split some computations into separate passes
298
+ and based it on a proper templating system (Codie).
299
+
300
+ * Rewrote variable handling in generated parsers in a stack-like fashion,
301
+ simplifying the code and making the parsers smaller and faster.
302
+
303
+ * Adapted to Node.js 0.6.6+ (no longer supported in older versions).
304
+
305
+ * Dropped support for IE < 8.
306
+
307
+ * As a result of several optimizations, parsers generated by 0.7.0 are ~6.4
308
+ times faster and ~19% smaller than those generated by 0.6.2 (as reported by
309
+ `/tools/impact`).
310
+
311
+ ### Small Changes
312
+
313
+ * Fixed reported error position when part of the input is not consumed.
314
+ [[GH-48](https://github.com/dmajda/pegjs/issues/48)]
315
+
316
+ * Fixed incorrect disjunction operator in `computeErrorPosition` (original
317
+ patch by Wolfgang Kluge).
318
+
319
+ * Fixed regexp for detecting command-line options in `/bin/pegjs`.
320
+ [[GH-51](https://github.com/dmajda/pegjs/issues/51)]
321
+
322
+ * Generate more efficient code for empty literals (original patch by Wolfgang
323
+ Kluge).
324
+
325
+ * Fixed comment typos (patches by Wolfgang Kluge and Jason Davies).
326
+ [[GH-59](https://github.com/dmajda/pegjs/issues/59)]
327
+
328
+ * Fixed a typo in JavaScript example grammar.
329
+ [[GH-62](https://github.com/dmajda/pegjs/issues/62)]
330
+
331
+ * Made copy & paste inclusion of the PEG.js library into another code easier
332
+ by changing how the library is exported.
333
+
334
+ * Improved the copyright comment and the “Generated by...” header.
335
+
336
+ * Replaced `Jakefile` with `Makefile`.
337
+
338
+ * Added `make hint` task that checks all JavaScript files using JSHint and
339
+ resolved all issues it reported. All JavaScript files and also generated
340
+ parsers are JSHint-clean now.
341
+
342
+ * Fixed output printed during test failures (expected value was being printed
343
+ instead of the actual one). Original patch by Wolfgang Kluge.
344
+
345
+ * Added a `/tools/impact` script to measure speed and size impact of commits.
346
+
347
+ * Various generated code improvements and fixes.
348
+
349
+ * Various internal code improvements and fixes.
350
+
351
+ * Improved `README.md`.
352
+
353
+ ## 0.6.2 (August 20, 2011)
354
+
355
+ ### Small Changes
356
+
357
+ * Reset parser position when action returns `null`.
358
+
359
+ * Fixed typo in JavaScript example grammar.
360
+
361
+ ## 0.6.1 (April 14, 2011)
362
+
363
+ ### Small Changes
364
+
365
+ * Use `--ascii` option when generating a minified version.
366
+
367
+ ## 0.6.0 (April 14, 2011)
368
+
369
+ ### Big Changes
370
+
371
+ * Rewrote the command-line mode to be based on Node.js instead of Rhino — no
372
+ more Java dependency. This also means that PEG.js is available as a Node.js
373
+ package and can be required as a module.
374
+
375
+ * Version for the browser is built separately from the command-line one in two
376
+ flavors (normal and minified).
377
+
378
+ * Parser variable name is no longer required argument of `bin/pegjs` — it is
379
+ `module.exports` by default and can be set using the `-e`/`--export-var`
380
+ option. This makes parsers generated by `/bin/pegjs` Node.js modules by
381
+ default.
382
+
383
+ * Added ability to start parsing from any grammar rule.
384
+
385
+ * Added several compiler optimizations — 0.6 is ~12% faster than 0.5.1 in the
386
+ benchmark on V8.
387
+
388
+ ### Small Changes
389
+
390
+ * Split the source code into multiple files combined together using a build
391
+ system.
392
+
393
+ * Jake is now used instead of Rake for build scripts — no more Ruby
394
+ dependency.
395
+
396
+ * Test suite can be run from the command-line.
397
+
398
+ * Benchmark suite can be run from the command-line.
399
+
400
+ * Benchmark browser runner improvements (users can specify number of runs,
401
+ benchmarks are run using `setTimeout`, table is centered and fixed-width).
402
+
403
+ * Added PEG.js version to “Generated by...” line in generated parsers.
404
+
405
+ * Added PEG.js version information and homepage header to `peg.js`.
406
+
407
+ * Generated code improvements and fixes.
408
+
409
+ * Internal code improvements and fixes.
410
+
411
+ * Rewrote `README.md`.
412
+
413
+ ## 0.5.1 (November 28, 2010)
414
+
415
+ ### Small Changes
416
+
417
+ * Fixed a problem where “SyntaxError: Invalid range in character class.” error
418
+ appeared when using command-line version on Widnows
419
+ ([GH-13](https://github.com/dmajda/pegjs/issues/13)).
420
+
421
+ * Fixed wrong version reported by `bin/pegjs --version`.
422
+
423
+ * Removed two unused variables in the code.
424
+
425
+ * Fixed incorrect variable name on two places.
426
+
427
+ ## 0.5 (June 10, 2010)
428
+
429
+ ### Big Changes
430
+
431
+ * Syntax change: Use labeled expressions and variables instead of `$1`, `$2`,
432
+ etc.
433
+
434
+ * Syntax change: Replaced `:` after a rule name with `=`.
435
+
436
+ * Syntax change: Allow trailing semicolon (`;`) for rules
437
+
438
+ * Semantic change: Start rule of the grammar is now implicitly its first rule.
439
+
440
+ * Implemented semantic predicates.
441
+
442
+ * Implemented initializers.
443
+
444
+ * Removed ability to change the start rule when generating the parser.
445
+
446
+ * Added several compiler optimizations — 0.5 is ~11% faster than 0.4 in the
447
+ benchmark on V8.
448
+
449
+ ### Small Changes
450
+
451
+ * `PEG.buildParser` now accepts grammars only in string format.
452
+
453
+ * Added “Generated by ...” message to the generated parsers.
454
+
455
+ * Formatted all grammars more consistently and transparently.
456
+
457
+ * Added notes about ECMA-262, 5th ed. compatibility to the JSON example
458
+ grammar.
459
+
460
+ * Guarded against redefinition of `undefined`.
461
+
462
+ * Made `bin/pegjs` work when called via a symlink
463
+ ([issue #1](https://github.com/dmajda/pegjs/issues/1)).
464
+
465
+ * Fixed bug causing incorrect error messages
466
+ ([issue #2](https://github.com/dmajda/pegjs/issues/2)).
467
+
468
+ * Fixed error message for invalid character range.
469
+
470
+ * Fixed string literal parsing in the JavaScript grammar.
471
+
472
+ * Generated code improvements and fixes.
473
+
474
+ * Internal code improvements and fixes.
475
+
476
+ * Improved `README.md`.
477
+
478
+ ## 0.4 (April 17, 2010)
479
+
480
+ ### Big Changes
481
+
482
+ * Improved IE compatibility — IE6+ is now fully supported.
483
+
484
+ * Generated parsers are now standalone (no runtime is required).
485
+
486
+ * Added example grammars for JavaScript, CSS and JSON.
487
+
488
+ * Added a benchmark suite.
489
+
490
+ * Implemented negative character classes (e.g. `[^a-z]`).
491
+
492
+ * Project moved from BitBucket to GitHub.
493
+
494
+ ### Small Changes
495
+
496
+ * Code generated for the character classes is now regexp-based (= simpler and
497
+ more scalable).
498
+
499
+ * Added `\uFEFF` (BOM) to the definition of whitespace in the metagrammar.
500
+
501
+ * When building a parser, left-recursive rules (both direct and indirect) are
502
+ reported as errors.
503
+
504
+ * When building a parser, missing rules are reported as errors.
505
+
506
+ * Expected items in the error messages do not contain duplicates and they are
507
+ sorted.
508
+
509
+ * Fixed several bugs in the example arithmetics grammar.
510
+
511
+ * Converted `README` to GitHub Flavored Markdown and improved it.
512
+
513
+ * Added `CHANGELOG`.
514
+
515
+ * Internal code improvements.
516
+
517
+ ## 0.3 (March 14, 2010)
518
+
519
+ * Wrote `README`.
520
+
521
+ * Bootstrapped the grammar parser.
522
+
523
+ * Metagrammar recognizes JavaScript-like comments.
524
+
525
+ * Changed standard grammar extension from `.peg` to `.pegjs` (it is more
526
+ specific).
527
+
528
+ * Simplified the example arithmetics grammar + added comment.
529
+
530
+ * Fixed a bug with reporting of invalid ranges such as `[b-a]` in the
531
+ metagrammar.
532
+
533
+ * Fixed `--start` vs. `--start-rule` inconsistency between help and actual
534
+ option processing code.
535
+
536
+ * Avoided ugliness in QUnit output.
537
+
538
+ * Fixed typo in help: `parserVar` → `parser_var`.
539
+
540
+ * Internal code improvements.
541
+
542
+ ## 0.2.1 (March 8, 2010)
543
+
544
+ * Added `pegjs-` prefix to the name of the minified runtime file.
545
+
546
+ ## 0.2 (March 8, 2010)
547
+
548
+ * Added `Rakefile` that builds minified runtime using Google Closure Compiler
549
+ API.
550
+
551
+ * Removed trailing commas in object initializers (Google Closure does not like
552
+ them).
553
+
554
+ ## 0.1 (March 8, 2010)
555
+
556
+ * Initial release.