protected void loadNextTokenFromInput() { bool eoiEncountered = false; for (int i = 0; i < _lookAhead - 1; i++) { lookAheadBuffer[i] = lookAheadBuffer[i + 1]; if (isEndOfInput(lookAheadBuffer[i])) { eoiEncountered = true; break; } } if (!eoiEncountered) { try { lookAheadBuffer[_lookAhead - 1] = lexer.nextToken(); } catch (Exception e) { Console.WriteLine(e); } } }