public void GotoToken(Token token) { currentTokenIndex = tokens.IndexOf(token); if (currentTokenIndex == -1) currentTokenIndex = 0; }