Commit graph

28 commits

Author SHA1 Message Date
David Majda 8f2aa1e834 Fixed a bug in the example grammar where integers beginning with 0 were parsed as octal. 2010-03-18 20:06:55 +01:00
David Majda aff85fd228 Removed subtraction and division from the example grammar because of wrong associativity. 2010-03-18 20:06:05 +01:00
David Majda c35417c345 Added tag 0.3 for changeset 6c4975072e03 2010-03-14 18:49:01 +01:00
David Majda f4e0d0a5ce Updated version to 0.3. 2010-03-14 18:48:54 +01:00
David Majda 9d239db2d6 Simplified the example arithmetics grammar once more + addded comment. 2010-03-14 18:46:53 +01:00
David Majda 8f3fa8436d Wrote README. 2010-03-14 15:03:14 +01:00
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. 2010-03-13 15:56:53 +01:00
David Majda 00a258d246 Renamed "humanName" to "displayName". 2010-03-13 15:36:04 +01:00
David Majda bdfc2a57e7 Avoid ugliness in QUnit output. 2010-03-13 15:33:03 +01:00
David Majda d3104742d9 Fixed --start vs. --start-rule inconsistency between help and actual option processing code. 2010-03-13 15:23:59 +01:00
David Majda a43d1b33e3 Bootstrapped the grammar parser, yay! I should have done this long ago. 2010-03-13 15:18:57 +01:00
David Majda 1ee0049b08 Changed standard grammar extension from .peg to .pegjs (it is more specific). 2010-03-13 09:52:54 +01:00
David Majda 0a5788b50e Fixed typo in help: "parserVar" -> "parser_var". 2010-03-13 09:50:56 +01:00
David Majda 636ceb2719 Metagrammar recognizes JavaScript-like comments. 2010-03-13 09:49:06 +01:00
David Majda eade133ea6 Simplified the example arithmetics grammar. 2010-03-12 14:27:22 +01:00
David Majda d810580232 Added tag 0.2.1 for changeset bf988d46416b 2010-03-08 15:22:03 +01:00
David Majda 1b8e9f55fd Updated version to 0.2.1. 2010-03-08 15:21:58 +01:00
David Majda 74507d5c12 Added "pegjs-" prefix to the name of the minified runtime file. 2010-03-08 15:21:11 +01:00
David Majda 4d9a31eb99 Added tag 0.2 for changeset 65f6b56a3e6c 2010-03-08 15:17:53 +01:00
David Majda ea8e25c585 Updated version to 0.2. 2010-03-08 15:17:49 +01:00
David Majda 09c7fb4f33 Added Rakefile that builds minified runtime using Google Closure Compiler API. 2010-03-08 15:16:35 +01:00
David Majda 7bf51eddf0 Removed trailing commas in object initializers (Google Closure does not like them). 2010-03-08 14:44:46 +01:00
David Majda 38dac2382c Added tag 0.1 for changeset f28e878f6afe 2010-03-08 14:22:13 +01:00
David Majda 452243d450 Improved error reporting for predicates a bit. 2010-03-08 12:15:52 +01:00
David Majda 69906e9730 Do not recognize \uFEFF as whitespace in the metagrammar since it does not work with Rhino. 2010-03-08 11:37:03 +01:00
David Majda bddb65ab9b Improved & simplified error handling code. 2010-03-08 09:58:23 +01:00
David Majda b86a219c86 Ensure that the same grammar and start rule always generate exactly the same parser. 2010-03-07 21:14:07 +01:00
David Majda c3dd696a3e Initial commit. 2010-03-07 20:41:02 +01:00