correction bug prettyprinter

This commit is contained in:
Rochas
2025-04-05 21:29:14 +02:00
parent b9b609f1e2
commit 5e36f25197
2 changed files with 13 additions and 3 deletions

View File

@@ -50,9 +50,10 @@ public class PrettyprinterVisitor implements ProgramVisitor<String,String>,
@Override
public String visitDeclaration(DeclarationImp instr, String indent) {
String str = indent + "declare "+instr.t().accept(this,"") + " ";
String str = indent +instr.t().accept(this,"") + " ";
for(int i = 0; i<instr.s().size();i++){
str += instr.s().get(i) + ",";
str += instr.s().get(i);
if(i<instr.s().size()-1) str += ",";
}
return str;
}