code: private int nextToken(StreamTokenizer tokeniser, Reader in, boolean ignoreEOF) throws IOException, ParserException {
          int token = tokeniser.nextToken();
          if (!ignoreEOF && token == StreamTokenizer.TT_EOF) {
              throw new ParserException("Unexpected end of file", getLineNumber(tokeniser, in));
          }
          return token;
      }
docs: Reads the next token from the tokeniser.
  This method throws a ParseException when reading EOF.
  
  @param tokeniser
  @param in
  @param ignoreEOF
  @return int value of the ttype field of the tokeniser
  @throws ParseException When reading EOF.