Commit Graph

  • 439c815e48 Move lot of stuff in generated parsers into the |parse| method David Majda 2010-06-07 12:11:48 +0200
  • 1daf1448e5 Get rid of the |_startRule| property in generated parsers. David Majda 2010-06-07 11:43:02 +0200
  • 95735f2c97 Allow trailing semicolon (";") for rules David Majda 2010-06-07 10:59:14 +0200
  • 7d4911ec53 Emit little bit less whitespace in actions David Majda 2010-06-07 10:45:26 +0200
  • ee8c121676 Use labeled expressions and variables instead of $1, $2, etc. David Majda 2010-05-31 12:40:24 +0200
  • 52704593cd Allow labeled expressions in the metagrammar (without any meaning yet) David Majda 2010-05-23 19:29:53 +0200
  • 409ddf2ae8 Formatted all grammars more consistently and transparently David Majda 2010-05-23 15:56:57 +0200
  • 698564a3c2 Replace ":" after a rule name with "=" David Majda 2010-05-23 10:41:43 +0200
  • 7fdf0492c7 Fixed error message for invalid character range + added test David Majda 2010-05-31 16:30:02 +0200
  • f9ea46ef15 Fix string literal parsing in the JavaScript grammar David Majda 2010-05-31 15:26:35 +0200
  • 570658756a Remove useless action from the metagrammar David Majda 2010-05-31 12:48:43 +0200
  • 9bf86b89a6 Fix stupid mistakes in metagrammar-test.js David Majda 2010-05-22 18:58:41 +0200
  • d1fc16c373 Fix bug causing incorrect error messages David Majda 2010-05-22 17:43:32 +0200
  • 11c67b0507 Remove trailing whitespace David Majda 2010-05-22 13:15:20 +0200
  • 90ed4712e9 Add compiler optimization: Remove proxy rules David Majda 2010-05-22 13:11:15 +0200
  • 33a1a7c1e9 Clean up class handling in the metagrammar and compiler David Majda 2010-05-22 10:13:48 +0200
  • 137a4b4f53 Renamed |characters| -> |chars| (shorter, no loss of expressivity) David Majda 2010-05-21 21:18:33 +0200
  • 4e968892be Guard against redefinition of |undefined| David Majda 2010-05-21 20:50:29 +0200
  • d85bfcb2e9 Fix comment typo David Majda 2010-05-21 20:34:17 +0200
  • 76ed63c86e AST refactoring 6/6: Get rid of the |Grammar| namespace David Majda 2010-05-21 19:00:00 +0200
  • b4bf49443a AST refactoring 5/6: Make AST classless David Majda 2010-05-21 18:54:52 +0200
  • 41abb7ad92 AST refactoring 4/6: Rewrite compilation to not extend the AST nodes David Majda 2010-05-21 17:30:39 +0200
  • 5885a34dde AST refactoring 3/6: Rewrite checks to not extend the AST nodes David Majda 2010-05-21 17:10:19 +0200
  • c59516541f AST refactoring 2/6: Add |type| property to AST nodes David Majda 2010-05-21 16:22:16 +0200
  • 4e99a2bda7 AST refactoring 1/6: Make properties of AST nodes public David Majda 2010-05-14 16:46:15 +0200
  • 1c7c5bb5da Correct variable name: "choice" -> "optional". David Majda 2010-05-15 19:56:50 +0200
  • 81eced29b2 Whitespace fixes David Majda 2010-05-14 18:02:45 +0200
  • 08635b658b Make bin/pegjs work when called via a symlink David Majda 2010-05-14 17:47:25 +0200
  • 6f2a188efc Checks refactoring David Majda 2010-05-08 18:28:33 +0200
  • 85930cbcfe Reorder AST stuff more consistently and sensibly David Majda 2010-05-08 17:50:20 +0200
  • f28c52fde2 Rename |_element| to |_expression| in AST David Majda 2010-05-07 17:46:11 +0200
  • 7d1261c0fc Regenerate lib/metagrammar.js (forgot to do it in previous commit) David Majda 2010-05-07 17:45:25 +0200
  • cc7f1d96eb Avoid |call| when calling actions with one parameter. David Majda 2010-04-25 16:50:44 +0200
  • e3aa4df090 Changed action parameter processing to avoid the arguments object. David Majda 2010-04-24 14:34:51 +0200
  • a1dcd245bb Action AST node no longer accepts functions as actions (only strings). David Majda 2010-04-21 21:26:45 +0200
  • b2f230fad2 Added Optional AST node. David Majda 2010-04-21 21:19:48 +0200
  • e5df8284b5 Added AndPredicate AST node. David Majda 2010-04-21 12:02:45 +0200
  • c3c1c79665 Added OneOrMore AST node. David Majda 2010-04-20 21:09:23 +0200
  • 8f59e21c8d Renamed an iterator variable: "key" -> "rule". David Majda 2010-04-19 20:45:27 +0200
  • 3f5cb8850c Fixed PEG.buildParser's documentation and added a test. David Majda 2010-04-19 20:43:03 +0200
  • 48da65d08e PEG.buildParser now accepts grammars only in string format. David Majda 2010-04-19 20:35:55 +0200
  • 927f2d65c9 Exception tests also test exception messages. David Majda 2010-04-19 20:18:15 +0200
  • b5ac4f0c4a Refactored helpers for testing of thrown exceptions. David Majda 2010-04-19 20:07:48 +0200
  • de7536fd94 Added notes about ECMA-262, 5th ed. compatibility to the JSON example grammar. David Majda 2010-04-19 20:00:22 +0200
  • a86e06a216 Add "Generated by ..." message to the generated parsers. David Majda 2010-04-19 19:54:28 +0200
  • f37ca3fcdb Updated version to 0.4 David Majda 2010-04-17 12:31:38 +0200
  • 870144b439 Added CHANGELOG. David Majda 2010-04-17 12:29:49 +0200
  • 7214de6dc8 README.md: Removed unnecessary "id" attribute from the example. David Majda 2010-04-17 11:54:47 +0200
  • db4cc71f2c README.md: Fixed formatting. David Majda 2010-04-17 11:52:36 +0200
  • 7822379c70 Rewrote the "Usage" section. David Majda 2010-04-17 11:49:18 +0200
  • c9a5e283e7 README.md: Renamed the "Requirements" section to "Compatibility" and moved it at the end. David Majda 2010-04-17 11:17:37 +0200
  • 3752fe211a README.md: Added the "Features" section. David Majda 2010-04-17 11:15:49 +0200
  • b4bf906cf8 Modified README.md to indicate that IE6+ is supported. David Majda 2010-04-16 20:28:24 +0200
  • 09291d6f0f Use "charAt(...)" instead of "[...]" for accessing string characters (compatibility with IE < 8). David Majda 2010-04-16 11:06:29 +0200
  • 28459236aa Removed trailing comma that caused error in IE. David Majda 2010-04-16 09:26:51 +0200
  • 4b51e6a6d3 Quote null characters in regexps, IE does not like them. David Majda 2010-04-16 08:53:02 +0200
  • 7fc491412d Work around the fact that IE does not recognize "\v" in strings. David Majda 2010-04-14 21:29:05 +0200
  • 6abda95a99 Made regexps generated for empty character classes ("[]" and "[^]") work in IE. David Majda 2010-04-14 21:08:35 +0200
  • e79e869993 Compensate for IE's lack of Array.prototype.indexOf function. David Majda 2010-04-12 21:11:02 +0200
  • 05381fedfa Fixed the inverted empty character class handling test. David Majda 2010-04-14 20:59:41 +0200
  • e63f64a3d5 Make the generated parsers standalone (no runtime is required). David Majda 2010-04-12 19:03:11 +0200
  • 3f85a9ca84 Regenerated the metaparser with one-level rule cache. David Majda 2010-04-11 17:02:53 +0200
  • 24d38f74b9 Replaced two-level rule cache with a one-level one. David Majda 2010-04-11 16:46:45 +0200
  • 74830d4f8f Sort expected strings in the error messages. David Majda 2010-04-11 15:34:30 +0200
  • 37521cffa5 Error messages now do not contain duplicities. David Majda 2010-04-11 15:30:02 +0200
  • 714512f232 Implemented generic AST node extension mechanism. David Majda 2010-04-11 14:48:52 +0200
  • 1aa3d8e07e Implemented a nop (no operation) function and used it on few places. David Majda 2010-04-11 14:16:38 +0200
  • 6a194e8f68 Added example JavaScript parser. David Majda 2010-04-11 13:18:23 +0200
  • 16f238a64d Fixed comment heading. David Majda 2010-04-11 12:41:25 +0200
  • 3291c70d97 Added \uFEFF (BOM) to the definition of whitespace in the metagrammar. David Majda 2010-04-11 11:24:36 +0200
  • 383c5acaa6 Replaced \xA0 by \u00A0 in the whitespace definition in the metagrammar. David Majda 2010-04-11 11:18:42 +0200
  • db616f0b77 Made the "version" variable scope smaller. David Majda 2010-04-11 11:15:40 +0200
  • c5cc545209 "rake metaparser" and "rake minify" now always generate the target files. David Majda 2010-04-11 11:05:44 +0200
  • 51232fd652 I don't like the .txt extension after all :-) David Majda 2010-04-11 10:59:13 +0200
  • 9488291ac0 Converted README to GitHub Flavored Markdown. David Majda 2010-04-09 18:29:43 +0200
  • 85bd98d846 Replaced .hgignore with .gitignore. David Majda 2010-04-09 17:30:32 +0200
  • cfd46b622a Added a benchmark suite. David Majda 2010-03-29 20:18:54 +0200
  • 751a33715d Added example CSS parser. David Majda 2010-03-29 12:44:32 +0200
  • a1adbf0607 Added example JSON parser. David Majda 2010-03-22 12:18:58 +0100
  • 20e230ca0e Killed *MatchFailure classes => simpler code. David Majda 2010-03-21 15:48:28 +0100
  • f87bcd6332 Added tests for error messages displayed when a character class match fails. David Majda 2010-03-21 15:24:03 +0100
  • 4f4bb34ded Implemented negative character classes (e.g. [^a-z]). David Majda 2010-03-20 12:08:45 +0100
  • b3381b9352 Fixed test name. David Majda 2010-03-20 11:51:31 +0100
  • 22d2ac8ac2 Rewrote implementation of classes to be regexp-based. David Majda 2010-03-20 11:24:04 +0100
  • 56ffa94cc7 PEG.buildParser reports left recursion (both direct and indirect). David Majda 2010-03-19 17:10:54 +0100
  • a3ecf768ca Fixed missing referenced rules test. David Majda 2010-03-19 16:36:43 +0100
  • 3a65316416 PEG.buildParser reports missing referenced rules. David Majda 2010-03-19 11:15:53 +0100
  • 6bbd88088b Implemented and used PEG.ArrayUtils.each. David Majda 2010-03-19 10:38:46 +0100
  • eae48caf91 Regenerated the grammar parser. David Majda 2010-03-19 10:38:32 +0100
  • 2e94dce944 Improved tests of the "arithmetics" grammar. David Majda 2010-03-19 10:28:24 +0100
  • 6f510a0336 The cache does not remember match length but next position after the match. David Majda 2010-03-19 10:12:35 +0100
  • 8f2aa1e834 Fixed a bug in the example grammar where integers beginning with 0 were parsed as octal. David Majda 2010-03-18 20:06:55 +0100
  • aff85fd228 Removed subtraction and division from the example grammar because of wrong associativity. David Majda 2010-03-18 20:06:05 +0100
  • c35417c345 Added tag 0.3 for changeset 6c4975072e03 David Majda 2010-03-14 18:49:01 +0100
  • f4e0d0a5ce Updated version to 0.3. David Majda 2010-03-14 18:48:54 +0100
  • 9d239db2d6 Simplified the example arithmetics grammar once more + addded comment. David Majda 2010-03-14 18:46:53 +0100
  • 8f3fa8436d Wrote README. David Majda 2010-03-14 15:03:14 +0100
  • 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. David Majda 2010-03-13 15:56:53 +0100
  • 00a258d246 Renamed "humanName" to "displayName". David Majda 2010-03-13 15:36:04 +0100
  • bdfc2a57e7 Avoid ugliness in QUnit output. David Majda 2010-03-13 15:33:03 +0100