blocks en cours

This commit is contained in:
trochas
2025-04-10 12:04:42 +02:00
8 changed files with 144 additions and 42 deletions

View File

@@ -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);
}