Exemplo n.º 1
0
 public CommonTreeNodeStream(ITreeAdaptor adaptor, object tree)
     : base(adaptor.Create(TokenConstants.EOF, "EOF"))  // set EOF
 {
     this._root    = tree;
     this._adaptor = adaptor;
     _it           = new TreeIterator(adaptor, _root);
     _it.eof       = this.Eof; // make sure tree iterator returns the EOF we want
 }
Exemplo n.º 2
0
 public CommonTreeNodeStream(ITreeAdaptor adaptor, object tree)
 {
     this._root    = tree;
     this._adaptor = adaptor;
     this._it      = new TreeIterator(adaptor, this._root);
 }