Add printout

This commit is contained in:
Daniel Holle 2023-08-17 10:17:09 +02:00
parent 14d0475d59
commit e69a367c33
2 changed files with 6 additions and 2 deletions

View File

@ -277,6 +277,7 @@ public class StatementGenerator {
ret.setStatement();
return ret;
default:
System.out.println(stmt.getClass());
throw new NotImplementedException();
}
}

View File

@ -413,7 +413,8 @@ public class OutputGenerator implements ASTVisitor {
}
untab();
out.append(tabs);
out.append("}");
out.append("}::");
switchStmt.getType().accept(this);
}
@Override
@ -445,8 +446,10 @@ public class OutputGenerator implements ASTVisitor {
@Override
public void visit(Yield aYield) {
out.append("yield ");
out.append("yield (");
aYield.retexpr.accept(this);
out.append(")::");
aYield.getType().accept(this);
}
@Override