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

@@ -91,6 +91,12 @@ public class toLLVM_Visitor implements ProgramVisitor<SymTable,ProgramLLVMImpl>
return list;
}
@Override
public ArrayList<InstructionLLVM> visitPrint(PrintImp instr, SymTable h) {
// TODO Auto-generated method stub
throw new UnsupportedOperationException("Unimplemented method 'visitPrint'");
}
@Override
public InstrOrVal visitConst(ConstImp e, SymTable h) {
ValLLVM val = new ValLLVMImpl(new IntLLVMImpl(),e.c());