public void Accept(CIL_GetAttr getAttr) { var type = getAttr.Instance.Type; var attr = Clases[type].GetAttribute(getAttr.Attr); int indx = Clases[type].AllAttributes().IndexOf(attr); int pos = 12 + (indx * 4); Text += "\t lw $v0, " + CurrentScope.VarInStack[getAttr.Instance.Value] + "($fp) \n" + "\t lw $a0, " + pos + "($v0) \n" + "\t sw $a0, " + CurrentScope.VarInStack[getAttr.Dest] + "($fp) \n"; }
public void Accept(CIL_GetAttr getAttr) { throw new System.NotImplementedException(); }