2024-04-25 11:27:38 +00:00
|
|
|
package abstractSyntaxTree.Expression;
|
|
|
|
|
2024-05-02 11:12:39 +00:00
|
|
|
import TypeCheck.TypeCheckResult;
|
2024-05-05 14:56:19 +00:00
|
|
|
import org.objectweb.asm.MethodVisitor;
|
2024-05-02 11:12:39 +00:00
|
|
|
|
2024-04-25 11:27:38 +00:00
|
|
|
public interface IExpression {
|
|
|
|
// typeCheck method
|
2024-05-02 11:12:39 +00:00
|
|
|
TypeCheckResult typeCheck() throws Exception;
|
2024-04-25 11:27:38 +00:00
|
|
|
|
|
|
|
// visit method for code generation
|
2024-05-05 14:56:19 +00:00
|
|
|
void CodeGen(MethodVisitor mv) throws Exception;
|
2024-04-25 11:27:38 +00:00
|
|
|
}
|