Esempio n. 1
0
 internal void Accept(NodeCont c)
 {
     builder.currentLineNumber = c.EndLine;
     builder.AddCont(log, c.location, c.label);
     // Push null for now, since this is technically an expression we must add an element to the stack.
     builder.OpNull();
 }
Esempio n. 2
0
 void ASTVisitor.Accept(NodeCont value)
 {
     Accept(value);
 }
Esempio n. 3
0
        // Get "after" secuence.
        private string GetPrev(string wantName, string myId)
        {
            string rval = wantName;

            foreach (NodeCont cnt in NodeContainer)
            {
                if (wantName == cnt.Name)
                {
                    rval = cnt.PrevId;
                    NodeContainer.Remove(cnt);
                    break;
                }
            }

            NodeCont node = new NodeCont();
            node.Name = wantName;
            node.PrevId = myId;
            NodeContainer.Add(node);
            return rval;
        }