tested print

This commit is contained in:
Vu Tuan Minh
2025-04-07 21:31:13 +02:00
parent 425e2d4088
commit b4bafcde5d
8 changed files with 33 additions and 10 deletions

View File

@@ -58,6 +58,11 @@ public class PrettyprinterVisitor implements ProgramVisitor<String,String>,
return str;
}
@Override
public String visitPrint(PrintImp instr, String indent) {
return indent+ "PRINT \""+instr.t() +"\"";
}
//EXPRESSION
@Override