tableau
This commit is contained in:
@@ -70,13 +70,20 @@ public class Program{
|
||||
}
|
||||
|
||||
//Declaration
|
||||
public static record DeclarationImp(Type t, ArrayList<String> s) implements Declaration{
|
||||
public static record DeclarationImp(Type t, ArrayList<VarDeclImp> s) implements Declaration{
|
||||
@Override
|
||||
public <H, S> S accept(DeclVisitor<H, S> v, H h) {
|
||||
return v.visitDeclaration(this, h);
|
||||
}
|
||||
}
|
||||
|
||||
public static record VarDeclImp(String nom, Integer size) implements Declaration{
|
||||
@Override
|
||||
public <H, S> S accept(DeclVisitor<H, S> v, H h) {
|
||||
return v.visitVarDecl(this, h);
|
||||
}
|
||||
}
|
||||
|
||||
//Instructions
|
||||
public static record Return_instrImp(Expression e) implements Instruction{
|
||||
public <H, S> S accept(InstrVisitor<H, S> v, H h) {
|
||||
|
||||
Reference in New Issue
Block a user