2024-04-25 13:27:38 +02:00
|
|
|
package abstractSyntaxTree.Expression;
|
|
|
|
|
2024-05-02 15:31:31 +02:00
|
|
|
import TypeCheck.TypeCheckResult;
|
2024-05-07 13:50:51 +02:00
|
|
|
import org.objectweb.asm.MethodVisitor;
|
|
|
|
|
|
|
|
import java.util.Map;
|
2024-05-02 15:31:31 +02:00
|
|
|
|
2024-04-25 13:27:38 +02:00
|
|
|
public class VarRefExpression implements IExpression{
|
2024-05-07 13:50:51 +02:00
|
|
|
|
|
|
|
//Parameters that are needed here
|
|
|
|
private String varName;
|
|
|
|
private Map<String, Integer> localVars;
|
|
|
|
|
2024-05-02 15:31:31 +02:00
|
|
|
@Override
|
|
|
|
public TypeCheckResult typeCheck() throws Exception {
|
|
|
|
return null;
|
|
|
|
}
|
2024-05-07 13:50:51 +02:00
|
|
|
|
|
|
|
@Override
|
2024-05-08 12:56:40 +02:00
|
|
|
public void codeGen(MethodVisitor mv) throws Exception {
|
2024-05-07 13:50:51 +02:00
|
|
|
throw new Exception("CodeGen not implemented for VarRefExpression");
|
|
|
|
}
|
2024-04-25 13:27:38 +02:00
|
|
|
}
|