code: private boolean isTokenNumberParsable(State state, String token) {
          if (token.isEmpty()) {
              return true;
          }
          return state.mDouble.reset(token).matches();
      }
docs: Check whether the token can be parsed to a number.
  
  @param state the state of the parser
  @param token the token
  @return true if token matches a double