Exemple #1
0
 public AMultipleStmts(
     PStmts _stmts_,
     PStmt _stmt_
     )
 {
     SetStmts(_stmts_);
     SetStmt(_stmt_);
 }
Exemple #2
0
 internal override void RemoveChild(Node child)
 {
     if (_stmts_ == child)
     {
         _stmts_ = null;
         return;
     }
 }
Exemple #3
0
        ArrayList New0()
        {
            ArrayList nodeList       = new ArrayList();
            ArrayList nodeArrayList1 = (ArrayList)Pop();
            PStmts    pstmtsNode2    = (PStmts)nodeArrayList1[0];
            AProg     pprogNode1     = new AProg(
                pstmtsNode2
                );

            nodeList.Add(pprogNode1);
            return(nodeList);
        }
Exemple #4
0
        ArrayList New1()
        {
            ArrayList      nodeList       = new ArrayList();
            ArrayList      nodeArrayList2 = (ArrayList)Pop();
            ArrayList      nodeArrayList1 = (ArrayList)Pop();
            PStmts         pstmtsNode2    = (PStmts)nodeArrayList1[0];
            PStmt          pstmtNode3     = (PStmt)nodeArrayList2[0];
            AMultipleStmts pstmtsNode1    = new AMultipleStmts(
                pstmtsNode2,
                pstmtNode3
                );

            nodeList.Add(pstmtsNode1);
            return(nodeList);
        }
Exemple #5
0
        public void SetStmts(PStmts node)
        {
            if (_stmts_ != null)
            {
                _stmts_.Parent(null);
            }

            if (node != null)
            {
                if (node.Parent() != null)
                {
                    node.Parent().RemoveChild(node);
                }

                node.Parent(this);
            }

            _stmts_ = node;
        }
Exemple #6
0
 public AProg(
     PStmts _stmts_
     )
 {
     SetStmts(_stmts_);
 }