Commit Graph

290 Commits (4f82ebdc2339dc36840ead43f9c69b02d6a6612d)

Author SHA1 Message Date
Slava Pestov 4cb64aaeb8 Fixing unit tests for eval word being moved 2008-07-29 00:05:01 -05:00
Chris Double 3f68fb4618 Fix regression where multiply defined ebnf rules didn't result in an error 2008-07-15 15:42:13 +12:00
Chris Double 539e697a08 Correct help-lint issues in pegs 2008-07-15 13:51:55 +12:00
Slava Pestov f7c69e0018 peg doesn't need combinators.lib 2008-07-11 17:27:47 -05:00
Chris Double 9fc2175403 peg refactorings 2008-07-11 11:37:02 +12:00
Chris Double 46b0df2631 Use || in peg choice code generation 2008-07-11 11:37:02 +12:00
Chris Double 51faed0945 Make pegs seq parser use short circuiting && 2008-07-11 11:37:02 +12:00
Chris Double b720bc16a8 Fix peg equals? method 2008-07-10 17:17:36 +12:00
Chris Double 2ed0d561ae Store peg rules by their id rather than word in left recursion handling 2008-07-10 13:56:07 +12:00
Chris Double 9e78bb70f2 packrat refactoring 2008-07-10 13:56:07 +12:00
Chris Double 4135f81514 Fix comment in peg eval-rule 2008-07-10 13:56:07 +12:00
Chris Double ec896eeba8 peg fixes 2008-07-10 13:56:06 +12:00
Chris Double d92c19f694 Remove delegate usage from pegs 2008-07-10 13:56:06 +12:00
Chris Double 7f4fe76698 More peg test fixes 2008-07-10 13:56:06 +12:00
Chris Double f3145c5961 [EBNF and EBNF: now return ast 2008-07-10 13:56:06 +12:00
Chris Double 72bd6b4dc8 Fix peg tests 2008-07-10 13:56:06 +12:00
Chris Double 4c1fe8f0b3 Add <EBNF ... ENBF> syntax to return a parser object 2008-07-10 13:56:06 +12:00
Chris Double 8aa7bc6d78 [EBNF ... EBNF] now does an implicit call 2008-07-10 13:56:06 +12:00
Chris Double e47f944cca Print error message nicely 2008-07-10 13:56:06 +12:00
Chris Double b5cef674b1 Pegs throw exceptions on error now 2008-07-10 13:56:06 +12:00
Chris Double c8511b483f Add support for 'with' in js parser. Now parses jquery successfully 2008-07-10 13:56:06 +12:00
Chris Double 8f718fa41e Parse more valid JavaScript 2008-07-10 13:56:06 +12:00
Chris Double 87bbe8cae1 Get for(x in y) { } working in js parser 2008-07-10 13:56:06 +12:00
Chris Double bf664e7ec8 Add ShiftExpr to JavaScript parser 2008-07-10 13:56:06 +12:00
Chris Double 7404c5dc01 Add ShiftExpr to JavaScript parser 2008-07-10 13:56:06 +12:00
Chris Double 4394cb08f6 RegExp fix for javascript tokenizer 2008-07-10 13:56:06 +12:00
Chris Double acb6d3a312 Fix peg.ebnf tests. Handle \ in EBNF 2008-07-10 13:56:06 +12:00
Chris Double cf00bc8a0c Add flags to regexp tokenizer in JavaScript 2008-07-10 13:56:06 +12:00
Chris Double 9c96edb805 Fix 'For' statement in JavaScript parser 2008-07-10 13:56:06 +12:00
Chris Double e14bb84a5a More error handling for pegs 2008-07-10 13:56:06 +12:00
Chris Double 00827d3b12 Throw error on failed parse, returning relevant error information 2008-07-10 13:56:05 +12:00
Chris Double 37ade561a9 Fix unary expression in js grammar 2008-07-10 13:56:05 +12:00
Slava Pestov 9d6f21d83c Fix bug exposed by new/boa change 2008-06-27 03:03:31 -05:00
Slava Pestov d65a76d10f Fixing builder failures 2008-06-25 15:35:14 -05:00
Slava Pestov 590ccc49e1 Fix conflict 2008-06-25 04:07:37 -05:00
Eduardo Cavazos bf238283da Update code for combinators.short-circuit 2008-06-24 13:47:54 -05:00
Chris Double 75814c35f4 Fix MulExpr to use Unary on rhs 2008-06-24 10:50:41 +12:00
Chris Double f0a1f8fe5f Fix JavaScript new expression 2008-06-21 16:56:21 +12:00
Chris Double a15783cabb Fix typo in != in JavaScript parser 2008-06-21 10:32:15 +12:00
Chris Double c5a9ee0e16 Add typeof, void and delete to JavaScript grammar 2008-06-21 02:40:08 +12:00
Chris Double 8fa0c80d4e Add regular expressions to JavaScript parser 2008-06-21 02:29:47 +12:00
Chris Double e8f9904549 Add \r to the JavaScript automatic semicolon insertion routine 2008-06-21 02:21:54 +12:00
Chris Double 4a47346bda Fix parse-javascript word for recent changes 2008-06-21 02:09:46 +12:00
Chris Double ff8e521907 Fix automatic semicolon insertion rule in JavaScript parser 2008-06-21 02:06:58 +12:00
Chris Double 6b83ab9d90 Fix terminal parser with non-default tokenizers 2008-06-21 01:49:07 +12:00
Chris Double 5433553571 Remove EBNF: and [EBNF EBNF] +tokenizer syntax
replaced with tokenizer support in ebnf grammar itself.
2008-06-21 01:00:27 +12:00
Chris Double eca8260799 peg.ebnf syntax for tokenizers 2008-06-21 00:28:13 +12:00
Chris Double b6b5f12732 Provide ability to plug in tokenizers to ebnf parsers 2008-06-20 22:45:19 +12:00
Chris Double 7239c4d79f Make replace-escapes infer and fix remaining unit test breakage in ebnf 2008-06-20 15:14:30 +12:00
Chris Double d22a24a90e Fix some failing ebnf unit tests 2008-06-20 14:13:50 +12:00