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:
parent
671f1a1ddc
commit
48baf056b4
18 changed files with 525 additions and 533 deletions
|
|
@ -11,7 +11,9 @@ var x = {};
|
|||
==========================================
|
||||
parses if statements
|
||||
==========================================
|
||||
if (1) { var x = 2; }
|
||||
if (1) {
|
||||
var x = 2;
|
||||
}
|
||||
---
|
||||
(program
|
||||
(statement (if
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue