code: public void assertToken(final String token, final boolean ignoreCase) throws ParseException {
      // ensure next token is a word token..
      assertWord();
  
      if (ignoreCase) {
        if (!token.equalsIgnoreCase(sval)) {
          throw new ParseException("Expected [" + token + "], read [" +
                                    sval + "] at " + lineno());
        }
      } else if (!token.equals(sval)) {
        throw new ParseException( "Expected [" + token + "], read [" +
                                  sval + "] at " + lineno());
      }
  
      if (debug()) {
        debug("[" + token + "]");
      }
    }
docs: Asserts that the next token in the stream matches the specified token.
  
  @param token expected token
  @param ignoreCase
  @throws ParseException