clean todo Load
This commit is contained in:
@@ -13,22 +13,14 @@ public class Program{
|
|||||||
|
|
||||||
public String prettyprinter(){
|
public String prettyprinter(){
|
||||||
PrettyprinterVisitor ppVisitor = new PrettyprinterVisitor();
|
PrettyprinterVisitor ppVisitor = new PrettyprinterVisitor();
|
||||||
return this.accept(ppVisitor, "");
|
return this.accept(ppVisitor, "");
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
public ProgramLLVMImpl toLLVM() {
|
public ProgramLLVMImpl toLLVM() {
|
||||||
/**ArrayList<DefineLLVM> fonctionLLVM = new ArrayList<>();
|
|
||||||
for(int i = 0; i<fonctions.size(); i++){
|
|
||||||
fonctionLLVM.add(fonctions.get(i).toLLVM());
|
|
||||||
}
|
|
||||||
return new ProgramLLVMImpl(new ArrayList<>(),fonctionLLVM);*/
|
|
||||||
toLLVM_Visitor llvmVisitor = new toLLVM_Visitor();
|
toLLVM_Visitor llvmVisitor = new toLLVM_Visitor();
|
||||||
return this.accept(llvmVisitor,new SymTable());
|
return this.accept(llvmVisitor,new SymTable());
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user