correction bug prettyprinter
This commit is contained in:
@@ -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;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user