delete print statement

This commit is contained in:
2020-03-09 14:19:43 +01:00
parent e297a7d2e8
commit ac6cb22e45
8 changed files with 1 additions and 63 deletions

View File

@@ -102,18 +102,6 @@ public class ContextAnalysis extends KlangBaseVisitor<Node> {
return result;
}
@Override
public Node visitPrint(KlangParser.PrintContext ctx) {
ctx.start.getLine();
ctx.start.getCharPositionInLine();
Node expression = this.visit(ctx.expression());
PrintStatement result = new PrintStatement((Expression) expression);
result.type = null;
result.line = ctx.start.getLine();
result.col = ctx.start.getCharPositionInLine();
return result;
}
@Override
public Node visitIf_statement(KlangParser.If_statementContext ctx) {
Node condition = this.visit(ctx.cond);