You cannot select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
David Majda 42d4fc6dd4 Get rid of two parser variable stacks
One stack is conceptually simpler, requires less code and will make a
transition to a register-based machine easier.

Note that the stack variables are now named a bit incorrectly
(|result0|, |result1|, etc. even when they store also parse positions).
I didn't bother with renaming because a transition to a register-based
machine will follow soon and the names will change anyway.

The speed/size impact is insignificant.

Speed impact
------------
Before:     839.05 kB/s
After:      839.67 kB/s
Difference: 0.07%

Size impact
-----------
Before:     949783 b
After:      961578 b
Difference: 1.24%

(Measured by /tools/impact with Node.js v0.6.18 on x86_64 GNU/Linux.)
12 years ago
..
compiler Get rid of two parser variable stacks 12 years ago
compiler.js Replace variable name computations by computations of indices 12 years ago
parser.js Get rid of two parser variable stacks 12 years ago
parser.pegjs Change ordering of "literal", "class" and "any" code 12 years ago
peg.js Add a note about semantic versioning to |PEG.VERSION| comment 12 years ago
utils.js AST: Store rules in an array instead of an object 12 years ago