private bool MoveNext(LexemeCodes code) { if (currentIndex == lexemes.Count) { throw new InvalidOperationException($"I need moaar, give me {code}"); } if (CurrentLexeme.Code == (int)code) { currentIndex++; return(true); } return(false); }
public bool Is(LexemeCodes code) { return((LexemeCodes)Code == code); }