This commit is contained in:
Vu Tuan Minh
2025-04-10 11:11:25 +02:00
parent 48763ff76e
commit bc2332037f
5 changed files with 63 additions and 13 deletions

View File

@@ -43,6 +43,18 @@ public class PrettyprinterVisitor implements ProgramVisitor<String,String>,
return indent+"RETURN " + instr.e().accept(this,"");
}
@Override
public String visitBloc(BlocImp instr, String h) {
// TODO Auto-generated method stub
throw new UnsupportedOperationException("Unimplemented method 'visitBloc'");
}
@Override
public String visitBlocDec(BlocDecImp instr, String h) {
// TODO Auto-generated method stub
throw new UnsupportedOperationException("Unimplemented method 'visitBlocDec'");
}
@Override
public String visitAssign(AssignImp instr, String indent) {
return indent + instr.t()+ " := " + instr.e().accept(this,"");