public override void OutAIntOperand(AIntOperand node) { // decorate this node BasicTypeDefinition intDef = new BasicTypeDefinition(); intDef.name = "int"; _decoratedParseTree.Add(node, intDef); }
public override void CaseAIntOperand(AIntOperand node) { InAIntOperand(node); if (node.GetInteger() != null) { node.GetInteger().Apply(this); } OutAIntOperand(node); }
ArrayList New16() { ArrayList nodeList = new ArrayList(); ArrayList nodeArrayList1 = (ArrayList)Pop(); TInteger tintegerNode2 = (TInteger)nodeArrayList1[0]; AIntOperand poperandNode1 = new AIntOperand( tintegerNode2 ); nodeList.Add(poperandNode1); return(nodeList); }
public virtual void OutAIntOperand(AIntOperand node) { DefaultOut(node); }
public virtual void InAIntOperand(AIntOperand node) { DefaultIn(node); }
public virtual void CaseAIntOperand(AIntOperand node) { DefaultCase(node); }
//x equals 3 end public override void OutAIntOperand(AIntOperand node) { _output.WriteLine("\tldc.i4 " + node.GetInt().Text); }