Exemple #1
0
 public Start(
     PProg _base_,
     EOF _eof_)
 {
     SetPProg(_base_);
     SetEOF(_eof_);
 }
Exemple #2
0
        internal override void RemoveChild(Node child)
        {
            if (_base_ == child)
            {
                _base_ = null;
                return;
            }

            if (_eof_ == child)
            {
                _eof_ = null;
                return;
            }
        }
Exemple #3
0
        public void SetEOF(EOF node)
        {
            if (_eof_ != null)
            {
                _eof_.Parent(null);
            }

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

                node.Parent(this);
            }

            _eof_ = node;
        }