def is_number(token):
  """Check if token is a SQL number literal."""
  # Note that Python's is_numeric() will return False for values like 30.3.
  try:
    float(token)
    return True
  except ValueError:
    return False