2527d15467
Also included some TODOs in areas where parameters and some connections are missing
24 lines
564 B
Java
24 lines
564 B
Java
package abstractSyntaxTree.Expression;
|
|
|
|
import TypeCheck.TypeCheckResult;
|
|
import org.objectweb.asm.MethodVisitor;
|
|
|
|
import java.util.Map;
|
|
|
|
public class VarRefExpression implements IExpression{
|
|
|
|
//Parameters that are needed here
|
|
private String varName;
|
|
private Map<String, Integer> localVars;
|
|
|
|
@Override
|
|
public TypeCheckResult typeCheck() throws Exception {
|
|
return null;
|
|
}
|
|
|
|
@Override
|
|
public void CodeGen(MethodVisitor mv) throws Exception {
|
|
throw new Exception("CodeGen not implemented for VarRefExpression");
|
|
}
|
|
}
|