correction bug expression de toLLVM, tout les test fragment0 marchent
This commit is contained in:
@@ -50,16 +50,10 @@ public class Program{
|
||||
}
|
||||
|
||||
|
||||
public static record ConstImp(int c) implements Val{
|
||||
public static record ConstImp(int c) implements Expression{
|
||||
public <H, S> S accept(ExprVisitor<H, S> v, H h) {
|
||||
return v.visitConst(this, h);
|
||||
}
|
||||
|
||||
public ValLLVM getValLLVM(){
|
||||
ValLLVM val = new ValLLVMImpl(new IntLLVMImpl(),c);
|
||||
return val;
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user