correction bug expression de toLLVM, tout les test fragment0 marchent

This commit is contained in:
Rochas
2025-04-05 23:33:38 +02:00
parent 5e36f25197
commit c9f1f86a2c
6 changed files with 114 additions and 48 deletions

View File

@@ -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;
}
}