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

@@ -61,6 +61,18 @@ public class Program{
}
}
public static record BlocDecImp(Declaration e, ArrayList<Instruction> l) implements Instruction{
public <H, S> S accept(InstrVisitor<H, S> v, H h) {
return v.visitBlocDec(this, h);
}
}
public static record BlocImp(ArrayList<Instruction> l) implements Instruction{
public <H, S> S accept(InstrVisitor<H, S> v, H h) {
return v.visitBloc(this, h);
}
}
public static record AssignImp(String t, Expression e) implements Instruction{
public <H, S> S accept(InstrVisitor<H, S> v, H h) {
return v.visitAssign(this, h);