modification de l'implémentation de prototype, il implement Function
This commit is contained in:
@@ -15,14 +15,6 @@ public interface Interface{
|
||||
public S visitProgram(ProgramImp prog, H h);
|
||||
}
|
||||
|
||||
//PROTOTYPE
|
||||
public interface Prototype{
|
||||
public <H,S> S accept(PrototypeVisitor<H,S> v, H h);
|
||||
}
|
||||
|
||||
public interface PrototypeVisitor<H,S> {
|
||||
public S visitPrototype(PrototypeImp proto, H h);
|
||||
}
|
||||
|
||||
//FUNCTION
|
||||
public interface Function {
|
||||
@@ -31,6 +23,7 @@ public interface Interface{
|
||||
|
||||
public interface FunctionVisitor<H,S> {
|
||||
public S visitFunction(FunctionImp fun, H h);
|
||||
public S visitPrototype(PrototypeImp proto, H h);
|
||||
}
|
||||
|
||||
//DECLARATION
|
||||
@@ -73,6 +66,7 @@ public interface Interface{
|
||||
public S visitConst(ConstImp e,H h);
|
||||
public S visitBinOp(BinopExpressionImp e, H h);
|
||||
public S visitVar(VarImp e,H h);
|
||||
public S visitAppeal(Appeal instr, H h);
|
||||
}
|
||||
|
||||
public interface Type{
|
||||
|
||||
Reference in New Issue
Block a user