class Cucumber::CucumberExpressions::CucumberExpressionParser

def looking_at(tokens, at, token)

def looking_at(tokens, at, token)
  if at < 0
    # If configured correctly this will never happen
    # Keep for completeness
    return token == TokenType::START_OF_LINE
  end
  if at >= tokens.length
    return token == TokenType::END_OF_LINE
  end
  tokens[at].type == token
end