Closed mewmew closed 8 years ago
Another issue related to NewBlockStmt
:
The following input:
int main(void) {
{
}
}
Results in the following error:
S156 }(14,}) reduce:28(Stmt : "{" Stmts "}" << astx.NewBlockStmt(X[1]) >>)
stmts: <nil>
stmts type: <nil>
2016/04/10 00:59:13 main.parseFile (uparse.go:71): error: Error in S38: }(14,}), Pos(offset=23, line=8, column=1)github.com/mewmew/uc/ast/astx.NewBlockStmt (astx.go:173): error: invalid block statements type; expected []ast.Stmt, got <nil>