Exemplo n.º 1
0
        public override void OutAIntOperand(AIntOperand node)
        {
            // decorate this node
            BasicTypeDefinition intDef = new BasicTypeDefinition();

            intDef.name = "int";
            _decoratedParseTree.Add(node, intDef);
        }
Exemplo n.º 2
0
 public override void CaseAIntOperand(AIntOperand node)
 {
     InAIntOperand(node);
     if (node.GetInteger() != null)
     {
         node.GetInteger().Apply(this);
     }
     OutAIntOperand(node);
 }
Exemplo n.º 3
0
        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);
        }
Exemplo n.º 4
0
 public virtual void OutAIntOperand(AIntOperand node)
 {
     DefaultOut(node);
 }
Exemplo n.º 5
0
 public virtual void InAIntOperand(AIntOperand node)
 {
     DefaultIn(node);
 }
Exemplo n.º 6
0
 public virtual void CaseAIntOperand(AIntOperand node)
 {
     DefaultCase(node);
 }
Exemplo n.º 7
0
 //x equals 3 end
 public override void OutAIntOperand(AIntOperand node)
 {
     _output.WriteLine("\tldc.i4 " + node.GetInt().Text);
 }