while imp en cours, todo : if else then
This commit is contained in:
@@ -30,14 +30,18 @@ public class ProgramLLVM {
|
||||
|
||||
|
||||
//Instructon :
|
||||
/*
|
||||
public static record LabelLLVMImpl(String nom) implements InstructionLLVM{
|
||||
|
||||
public static record LabelLLVMImp(String nom) implements InstructionLLVM{
|
||||
public String prettyprinter(){
|
||||
StringBuilder str = new StringBuilder();
|
||||
return str.toString();
|
||||
}
|
||||
|
||||
@Override
|
||||
public <H, S> S accept(InstructionLLVMVisitor<H, S> v, H h) {
|
||||
return v.visitLabelLLVM(this, h);
|
||||
}
|
||||
}
|
||||
*/
|
||||
|
||||
|
||||
public static record AssignLVMImpl(VarLLVMImpl var, ExpressionLLVM e) implements InstructionLLVM{
|
||||
@@ -76,30 +80,27 @@ public class ProgramLLVM {
|
||||
}
|
||||
}
|
||||
|
||||
public static record IfThenLLVMImp() implements InstructionLLVM{
|
||||
public static record IfThenLLVMImp(ExpressionLLVM cond, InstructionLLVM instr) implements InstructionLLVM{
|
||||
@Override
|
||||
public <H, S> S accept(InstructionLLVMVisitor<H, S> v, H h) {
|
||||
// TODO Auto-generated method stub
|
||||
throw new UnsupportedOperationException("Unimplemented method 'accept'");
|
||||
return v.visitIfThenLLVM(this, h);
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
public static record IfThenElseLLVMImp() implements InstructionLLVM{
|
||||
public static record IfThenElseLLVMImp(ExpressionLLVM cond, InstructionLLVM intr1, InstructionLLVM instr2) implements InstructionLLVM{
|
||||
|
||||
@Override
|
||||
public <H, S> S accept(InstructionLLVMVisitor<H, S> v, H h) {
|
||||
// TODO Auto-generated method stub
|
||||
throw new UnsupportedOperationException("Unimplemented method 'accept'");
|
||||
return v.visitIfThenElseLLVM(this, h);
|
||||
}
|
||||
}
|
||||
|
||||
public static record WhileLLVMImp() implements InstructionLLVM{
|
||||
public static record WhileLLVMImp(ExpressionLLVM cond, InstructionLLVM instr) implements InstructionLLVM{
|
||||
|
||||
@Override
|
||||
public <H, S> S accept(InstructionLLVMVisitor<H, S> v, H h) {
|
||||
// TODO Auto-generated method stub
|
||||
throw new UnsupportedOperationException("Unimplemented method 'accept'");
|
||||
return v.visitWhileLLVM(this, h);
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user