public Token Peek() { if (Lookahead == null) { if (!TokenIterator.MoveNext()) return null; Lookahead = TokenIterator.Current; } return Lookahead; }
public Token NextToken() { if (Lookahead != null) { var lh = Lookahead; Lookahead = null; return lh; } else { if (!TokenIterator.MoveNext()) return null; return TokenIterator.Current; } }