Fix StatementGeneratorTest
This commit is contained in:
parent
2b90f84c1e
commit
d0c24b9ac8
@ -27,6 +27,6 @@ public class StatementGeneratorTest
|
|||||||
DecafLexer lexer = new DecafLexer(input);
|
DecafLexer lexer = new DecafLexer(input);
|
||||||
CommonTokenStream tokens = new CommonTokenStream(lexer);
|
CommonTokenStream tokens = new CommonTokenStream(lexer);
|
||||||
DecafParser parser = new DecafParser(tokens);
|
DecafParser parser = new DecafParser(tokens);
|
||||||
return new StatementGenerator().visit(parser.stmt());
|
return parser.stmt().accept(new StatementGenerator());
|
||||||
}
|
}
|
||||||
}
|
}
|
Loading…
Reference in New Issue
Block a user