Allow empty blocks.

This commit is contained in:
wycats
2010-12-02 01:27:41 -05:00
parent 762329913d
commit 87b526df27
+1
View File
@@ -9,6 +9,7 @@ root
program
: statements simpleInverse statements { $$ = new yy.ProgramNode($1, $3) }
| statements { $$ = new yy.ProgramNode($1) }
| "" { $$ = new yy.ProgramNode([]) }
;
statements