moitie gragment 0

This commit is contained in:
Vu Tuan Minh
2025-04-02 15:06:29 +02:00
parent 52a5c00f74
commit d1b9ec0396
11 changed files with 444 additions and 336 deletions

View File

@@ -30,6 +30,7 @@ public interface Interface{
public interface InstrVisitor<H,S>{
public S visitReturn(Return_instrImp e, H h);
public S visitAssign(AssignImp e, H h);
}
public interface ExprVisitor<H,S> {
@@ -41,12 +42,5 @@ public interface Interface{
public String prettyprinter();
}
public enum Op {PLUS, MINUS, TIMES, DIV,MOD}
//Eval
public interface ExprEval extends ExprVisitor<Map<String, Integer>, Integer> {
}
public interface TypeCheck extends ExprVisitor<Map<String, Type>, Type> {
}
public enum Op {PLUS, MINUS, TIMES, DIV, MOD}
}