public void testStreamTokenizer() {
    System.out.println("\n*** testStreamTokenizer ***");
    try {
      String string = "()";
      MyStreamTokenizer st = CycListParser.makeStreamTokenizer(string);
      assertEquals(40, st.nextToken());
      assertEquals(41, st.nextToken());
      assertEquals(st.TT_EOF, st.nextToken());

      string = "(1)";
      st = CycListParser.makeStreamTokenizer(string);
      assertEquals(40, st.nextToken());

      int token = st.nextToken();
      assertEquals(st.TT_WORD, token);
      assertEquals("1", st.sval);

      assertEquals(41, st.nextToken());
      assertEquals(st.TT_EOF, st.nextToken());
      string = "(-10 -2 -1.0 -5.2E05)";
      st = CycListParser.makeStreamTokenizer(string);
      assertEquals(40, st.nextToken());

      token = st.nextToken();
      assertEquals(st.TT_WORD, token);
      assertEquals("-10", st.sval);

      token = st.nextToken();
      assertEquals(st.TT_WORD, token);
      assertEquals("-2", st.sval);

      token = st.nextToken();
      assertEquals(st.TT_WORD, token);
      assertEquals("-1.0", st.sval);

      token = st.nextToken();
      assertEquals(st.TT_WORD, token);
      assertEquals("-5.2E05", st.sval);

      assertEquals(41, st.nextToken());
      assertEquals(st.TT_EOF, st.nextToken());

    } catch (Exception e) {
      e.printStackTrace();
      fail();
    }

    System.out.println("*** testStreamTokenizer OK ***");
  }