pegjs/lib/compiler/passes
David Majda 44e03187a7 Assert that generated bytecode manipulates stack correctly
There are two invariants in generated bytecode related to the stack:

  1. Branches of a condition must move the stack pointer in the same way.

  2. Body of a loop can't move the stack pointer.

These invariants were always true, but they were not checked. Now we
check them at least when compiling with optimization for speed, because
there we analyze the stack pointer movements statically.
2013-12-07 16:45:23 +01:00
..
generate-bytecode.js Renumber bytecode instructions to make them sequential 2013-12-07 15:58:26 +01:00
generate-javascript.js Assert that generated bytecode manipulates stack correctly 2013-12-07 16:45:23 +01:00
remove-proxy-rules.js Move options handling from passes to |PEG.compiler.compile| 2013-01-06 10:32:52 +01:00
report-left-recursion.js Make |GrammarError| require work also in the browser version 2013-01-05 21:16:36 +01:00
report-missing-rules.js Make |GrammarError| require work also in the browser version 2013-01-05 21:16:36 +01:00