260 Commits (7d13580855b9d488297cca61a83d1c56a7b71345)

Author SHA1 Message Date
David Majda f2f88b87ea Make current parse position visible in actions and predicates 9 years ago
David Majda f47da5c682 Fix a bug in param name fixup code for sequences 9 years ago
David Majda 4d5b1d58aa AST: Store rules in an array instead of an object 9 years ago
David Majda a2af1fe612 Semantic predicates now have access to preceding labels 9 years ago
David Majda 4cf50bcf9f Move param computations from the emitter into a separate pass 9 years ago
David Majda efc38eef9b Consolidate all variable name computations into one compiler pass 9 years ago
David Majda 46b2eaf3e3 Add |expected| and |found| properties to exceptions thrown by parsers 10 years ago
David Majda 21c6d9ccd3 Add |offset| property to exceptions thrown by parsers 10 years ago
David Majda fb5028eb90 Use |util| module instead of |sys| 10 years ago
David Majda 8a0276ffb7 Unify checks and passes 10 years ago
David Majda 6cd5bdc5e6 Passes now do not return anything (they always modify the AST in-place) 10 years ago
David Majda 3983f46d5d Rename |reportMissingReferencedRules| check to |reportMissingRules| 10 years ago
David Majda 64d26e5db2 Make names of compiler checks and passes verbs 10 years ago
David Majda 8acea01525 Fix reported error position when part of the input is not consumed 10 years ago
David Majda 211a1116e4 Fix stack depth computations for empty sequences 10 years ago
David Majda afdcb6fc4f Fix |posStackDepth| computation for rules 10 years ago
David Majda 756b6fc473 Fix |resultStackDepth| computation for sequences 10 years ago
David Majda 9c3da347cc Fix string parsing tests 10 years ago
David Majda 3421bdb813 Test trailing characters for strings and literals at correct places 10 years ago
David Majda c04af99df8 Implament case-insensitive class matching 10 years ago
David Majda b540b2d460 Implement case-insensitive literal matching 10 years ago
David Majda 88c50a3e33 Add tests for zero- and one-char literals 10 years ago
David Majda 1c11e4aaa3 Split |literal| rule in the PEG.js grammar to |literal| and |string| 10 years ago
David Majda cb2415a4fd Fix output printed during test failures 10 years ago
David Majda 17f62ae9e3 test/parser-test.js: Replace "\0" with "\x00" 10 years ago
David Majda 934bfa5eef test/parser-test.js: Fix missing/unnecessary semicolons 10 years ago
David Majda d84f38c64b test/parser-test.js: Fix comments that look like nested to JSHint 10 years ago
David Majda 34d19a7dc6 test/passes-test.js: Add missing semicolons 10 years ago
David Majda 0fe5769024 test/checks-test.js: Avoid function definitions in loops 10 years ago
David Majda 96192417d8 test/compiler-test.js: Remove extra comma 10 years ago
David Majda e93eaa0e0e test/compiler-test.js: Add missing semicolon 10 years ago
David Majda a92676edce Upgrade QUnit to the current master 10 years ago
David Majda d123cf0eda Rewrite variable handling in generated parsers 10 years ago
David Majda 8b2edd3c41 Remove trailing comma in parser tests (IE compatibility) 10 years ago
David Majda 747cb8afaa Reset parser position when action returns |null| 10 years ago
David Majda cc7ad9739f Add ability to start parsing from any grammar rule 10 years ago
David Majda 3e7d31559d Do not pass |global| into wrapping functions in tests, it's useless 11 years ago
David Majda cfc6041041 Remove function wrapping and all |global| refrences from helpers.js 11 years ago
David Majda 918dcf6ed2 Test and benchmark command-line runners can be run from any directory 11 years ago
David Majda 8f005c027b Fix encoding in |fs.readFileSync| calls ("utf-8" -> "utf8") 11 years ago
David Majda d0c074e2f8 Small style fixes 11 years ago
David Majda afcceb127f Add command-line runner for the test suite 11 years ago
David Majda 0e9d58ea96 Upgrade QUnit to the current master (c532d183664118fc2ca1) 11 years ago
David Majda aeb2cb4f1c Make sure quoting functions output only ASCII characters 11 years ago
David Majda d493a4d143 Move test helper into its own file + reorder test file includes 11 years ago
David Majda fea6d85194 Little compiler tests clean-up 11 years ago
David Majda 8918d77da1 Add compiler passes tests (currently testing the one pass that exists) 11 years ago
David Majda 95f70c9562 Test the checks directly, do not go through |PEG.buildParser| 11 years ago
David Majda 1b75a7b9b3 Split-off |PEG.compiler.checks| tests 11 years ago
David Majda b15eb0bb5f Change term "grammar parser" to "parser" in tests 11 years ago