Compare commits

...

1 Commits

Author SHA1 Message Date
d0c24b9ac8 Fix StatementGeneratorTest 2024-03-20 12:58:17 +00:00

View File

@ -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());
} }
} }