Store grammars' rules in vectors, not maps

This way, we can keep of the order in which the rules
were given, for resolving reduce/reduce conflicts.
This commit is contained in:
Max Brunsfeld 2014-03-24 13:05:04 -07:00
parent 671f1a1ddc
commit 48baf056b4
18 changed files with 525 additions and 533 deletions

View file

@ -11,7 +11,9 @@ var x = {};
==========================================
parses if statements
==========================================
if (1) { var x = 2; }
if (1) {
var x = 2;
}
---
(program
(statement (if