protected Object next(){
  int i=0;
  char[] c;
  try {
    i=st.nextToken();
  }
 catch (  IOException e) {
    Debug.error("NetMapReader: " + e.toString() + " in toktest\n");
  }
  if ((i == StreamTokenizer.TT_EOF) || (i == 0))   return EOF;
  if (i == StreamTokenizer.TT_WORD)   return new Symbol(st.sval,1);
  if ((i == '\'') || (i == '\"'))   return st.sval;
  if (i == StreamTokenizer.TT_NUMBER)   return new Double(st.nval);
  if ((i == '(') || (i == '[') || (i == '{'))   return LP;
  if ((i == ')') || (i == ']') || (i == '}'))   return RP;
  c=new char[1];
  c[0]=(char)i;
  return new Symbol(new String(c),2);
}

protected Object next ( ) { int i = 0 ; char [ ] c ; try { i = st . nextToken ( ) ; } catch ( IOException e ) { Debug . error ( "NetMapReader: " + e . toString ( ) + " in toktest\n" ) ; } if ( ( i == StreamTokenizer . TT_EOF ) || ( i == 0 ) ) return EOF ; if ( i == StreamTokenizer . TT_WORD ) return new Symbol ( st . sval , 1 ) ; if ( ( i == '\'' ) || ( i == '\"' ) ) return st . sval ; if ( i == StreamTokenizer . TT_NUMBER ) return new Double ( st . nval ) ; if ( ( i == '(' ) || ( i == '[' ) || ( i == '{' ) ) return LP ; if ( ( i == ')' ) || ( i == ']' ) || ( i == '}' ) ) return RP ; c = new char [ 1 ] ; c [ 0 ] = ( char ) i ; return new Symbol ( new String ( c ) , 2 ) ; }
break the next token into an object .
