print et Read en cours

This commit is contained in:
trochas
2025-04-08 13:05:11 +02:00
8 changed files with 74 additions and 5 deletions

View File

@@ -61,6 +61,21 @@ public class ProgramLLVM {
}
}
public static record PrintLLVMImp(ArrayList<String> l) implements InstructionLLVM{
@Override
public <H, S> S accept(InstructionLLVMVisitor<H, S> v, H h) {
return v.visitPrintLLVM(this, h);
}
}
public static record ReadLLVMImp(ArrayList<String> l) implements InstructionLLVM{
@Override
public <H, S> S accept(InstructionLLVMVisitor<H, S> v, H h) {
return v.visitReadLLVM(this, h);
}
}
//Expression :
public static record BinOpLLVMImp(TypeLLVM type,Op op, ValLLVM val1,ValLLVM val2) implements ExpressionLLVM{