block
This commit is contained in:
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user