blocks en cours
This commit is contained in:
@@ -44,6 +44,8 @@ public interface Interface{
|
||||
|
||||
public interface InstrVisitor<H,S>{
|
||||
public S visitReturn(Return_instrImp instr, H h);
|
||||
public S visitBloc(BlocImp instr, H h);
|
||||
public S visitBlocDec (BlocDecImp instr, H h);
|
||||
public S visitAssign(AssignImp instr, H h);
|
||||
public S visitPrint(PrintImp instr, H h);
|
||||
public S visitRead(ReadImp instr,H h);
|
||||
@@ -52,10 +54,8 @@ public interface Interface{
|
||||
public S visitWhile(WhileImp instr, H h);
|
||||
}
|
||||
|
||||
|
||||
//EXPRESSION
|
||||
//We put prettyprinter here beause each expr will have to implement it like accept visitor
|
||||
//but each implement will be different for prettyprinter
|
||||
|
||||
public interface Expression {
|
||||
public <H,S> S accept(ExprVisitor<H,S> v, H h);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user