params function
This commit is contained in:
@@ -25,7 +25,7 @@ public class Program{
|
||||
}
|
||||
|
||||
//Prototype
|
||||
public static record PrototypeImp(Type type, String nom, ArrayList<String> s) implements Prototype{
|
||||
public static record PrototypeImp(Type type, String nom, ArrayList<String> params) implements Prototype{
|
||||
@Override
|
||||
public <H, S> S accept(PrototypeVisitor<H, S> v, H h) {
|
||||
return v.visitPrototype(this,h);
|
||||
@@ -34,7 +34,7 @@ public class Program{
|
||||
}
|
||||
|
||||
//Fonction
|
||||
public static record FunctionImp(Type type, String nom, ArrayList<String> s,Instruction instruction)implements Function {
|
||||
public static record FunctionImp(Type type, String nom, ArrayList<VarImp> params,Instruction instruction)implements Function {
|
||||
//public FunctionImp(Type type, String name, Instruction instruction) {
|
||||
// this(type, name, new ArrayList<>() {{ add(instruction); }}); C KOI ?
|
||||
//}
|
||||
@@ -62,7 +62,7 @@ public class Program{
|
||||
return v.visitVar(this, h);
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
//Declaration
|
||||
|
||||
public static record DeclarationImp(Type t, ArrayList<String> s) implements Declaration{
|
||||
|
||||
Reference in New Issue
Block a user