209 Commits (d08e8bf52d77afcfa08a129a865772fa3474b90a)

Author SHA1 Message Date
David Majda 2aaa038499 Add a hack to skip last comma in |parseFunctions| 10 years ago
David Majda abf33d3feb Add a note about semantic versioning to |PEG.VERSION| comment 10 years ago
David Majda 7f2dc850e0 Change how the library is exported 10 years ago
David Majda 8d74248251 Make "Generated by ..." comment match the copyright comment 10 years ago
David Majda 7e02e45831 Improve copyright comment 10 years ago
David Majda 90d164445a Update embedded Codie to version 1.1.0 10 years ago
David Majda 52d7ec2224 Implement |trackLineAndColumn| option for |PEG.buildParser| 10 years ago
David Majda 9615eb4bb6 Allow passing options to |PEG.buildParser| 10 years ago
David Majda f2f88b87ea Make current parse position visible in actions and predicates 10 years ago
David Majda f47da5c682 Fix a bug in param name fixup code for sequences 10 years ago
David Majda 4d5b1d58aa AST: Store rules in an array instead of an object 10 years ago
David Majda ed45a1808e Fix |quote| visibility in generated parsers 10 years ago
David Majda a2af1fe612 Semantic predicates now have access to preceding labels 10 years ago
David Majda 4cf50bcf9f Move param computations from the emitter into a separate pass 10 years ago
David Majda efc38eef9b Consolidate all variable name computations into one compiler pass 10 years ago
David Majda d002cd6ff6 Remove comment about IE in |quoteForRegexpClass| 10 years ago
David Majda 46b2eaf3e3 Add |expected| and |found| properties to exceptions thrown by parsers 10 years ago
David Majda e9d8dc8eba More responsibility for building an error message into |SyntaxError| 10 years ago
David Majda 21c6d9ccd3 Add |offset| property to exceptions thrown by parsers 10 years ago
David Majda 791c495aec Update embedded Codie to version 1.0.1 10 years ago
David Majda 47969a2f61 Replace |for| loop iterating over sequence elements with |each| 10 years ago
David Majda a19ea83ffa Replace |for| loop iterating over compiler passes with |each| 10 years ago
David Majda cd5490dee4 Make pass list customizable via |PEG.compiler.appliedPassNames| property 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 2a82d863e5 Regenerate src/parser.js (forgot to do it in previous commit) 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 c639c1fc83 PEG.js grammar: Replace two instances of |string / ""| by |string?| 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 1c11e4aaa3 Split |literal| rule in the PEG.js grammar to |literal| and |string| 10 years ago
David Majda da12c2f5d4 Compile Codie templates only once 10 years ago
David Majda a5af9611a2 Introduce |context.delta| function to make creating contexts more DRY 10 years ago
David Majda be3b87ec71 Refactor "grammar" emitter function a bit 10 years ago
David Majda 2b09a7116d Refactor "rule" emitter function a bit 10 years ago
David Majda 131b6dd01f Refactor "sequence" emitter function a bit 10 years ago
David Majda f29ff236b8 Refactor "simple_and" emitter function a bit 10 years ago
David Majda 506d8107a1 Refactor "simple_not" emitter function a bit 10 years ago
David Majda 13ae52b2bf Refactor "semantic_and" emitter function a bit 10 years ago
David Majda 9111020ca2 Refactor "semantic_not" emitter function a bit 10 years ago
David Majda cc3bd4f310 Refactor "zero_or_more" emitter function a bit 10 years ago
David Majda 85c1b010b6 Refactor "one_or_more" emitter function a bit 10 years ago
David Majda b5ca96dd48 Refactor "action" emitter function a bit 10 years ago
David Majda 50a0371e2d Refactor "rule_ref" emitter function a bit 10 years ago
David Majda eaba6b8a9d Refactor "literal" emitter function a bit 10 years ago