コード例 #1
0
 public LookAheadEnumeratorEnumerator(LookAheadEnumerator <T> outer)
 {
     this._outer = outer;
     if (this._outer.IsEnumerating)
     {
         this._current = this._outer.Current;
     }
     this._index = LookAheadEnumeratorEnumerator <T> ._NotStarted;
 }
コード例 #2
0
 private _PC(IEnumerator <Token> enumerator, bool wrap)
 {
     this._e = enumerator;
     if (wrap)
     {
         this._el = new LookAheadEnumerator <Token>(enumerator);
         this._e  = this._el;
         // we need both pointers to point to the lookahead
     }
     this._state        = -1;
     this._t.SymbolId   = -1;
     this._advanceCount = 0;
     this._skipped      = new List <Token>();
 }
コード例 #3
0
 public LookAheadEnumeratorEnumerable(LookAheadEnumerator <T> outer)
 {
     this._outer = outer;
 }