While toLLVM fait

This commit is contained in:
Rochas
2025-04-10 21:23:32 +02:00
parent 99b6cbc08a
commit 3a009f7fac
7 changed files with 86 additions and 29 deletions

View File

@@ -131,10 +131,10 @@ public class PrettyprinterVisitor implements ProgramVisitor<String,String>,
@Override
public String visitWhile(WhileImp instr, String indent) {
String str = indent+"WHILE ";
str += (instr.e().accept(this, ""));
str+= " DO ";
str+= instr.i1().accept(this, "");
str+= " DONE";
str += (instr.e().accept(this, indent))+"\n";
str+= indent+"DO ";
str+= instr.i1().accept(this, indent)+"\n";
str+= indent+"DONE";
return str;
}