src/com/mlhsoftware/commandline/model/CmdTokener.java
public char nextClean() throws TokenException
  {
    for ( ; ; )
    {
      char c = next();
      if ( c == '/' )
      {
        switch ( next() )
        {
          case '/':
          do
          {
            c = next();
          } while ( c != '\n' && c != '\r' && c != 0 );
          break;
          case '*':
          for ( ; ; )
          {
            c = next();
            if ( c == 0 )
            {
              throw syntaxError( "Unclosed comment." );
            }
            if ( c == '*' )
            {
              if ( next() == '/' )
              {
                break;
              }
              back();
            }
          }
          break;
          default:
          back();
          return '/';
        }
      }
      else if ( c == '#' )
      {
        do
        {
          c = next();
        } while ( c != '\n' && c != '\r' && c != 0 );
      }
      else if ( c == 0 || c > ' ' )
      {
        return c;
      }
    }
  }
/**
 * Get the next char in the string, skipping whitespace
   * and comments (slashslash, slashstar, and hash).
   * @throws FSONException
   * @return  A character, or 0 if there are no more characters.
   */
Get the next char in the string, skipping whitespace
and comments (slashslash, slashstar, and hash).
@throws FSONException
@return  A character, or 0 if there are no more characters.
Get the next char in the string skipping whitespace and comments ( slashslash slashstar and hash ) . @throws FSONException @return A character or 0 if there are no more characters .
public char nextClean() throws TokenException
  {
    for ( ; ; )
    {
      char c = next();
      if ( c == '/' )
      {
        switch ( next() )
        {
          case '/':
          do
          {
            c = next();
          } while ( c != '\n' && c != '\r' && c != 0 );
          break;
          case '*':
          for ( ; ; )
          {
            c = next();
            if ( c == 0 )
            {
              throw syntaxError( "Unclosed comment." );
            }
            if ( c == '*' )
            {
              if ( next() == '/' )
              {
                break;
              }
              back();
            }
          }
          break;
          default:
          back();
          return '/';
        }
      }
      else if ( c == '#' )
      {
        do
        {
          c = next();
        } while ( c != '\n' && c != '\r' && c != 0 );
      }
      else if ( c == 0 || c > ' ' )
      {
        return c;
      }
    }
  }
public char nextClean ( ) throws TokenException { for ( ; ; ) { char c = next ( ) ; if ( c == '/' ) { switch ( next ( ) ) { case '/' : do { c = next ( ) ; } while ( c != '\n' && c != '\r' && c != 0 ) ; break ; case '*' : for ( ; ; ) { c = next ( ) ; if ( c == 0 ) { throw syntaxError ( "Unclosed comment." ) ; } if ( c == '*' ) { if ( next ( ) == '/' ) { break ; } back ( ) ; } } break ; default : back ( ) ; return '/' ; } } else if ( c == '#' ) { do { c = next ( ) ; } while ( c != '\n' && c != '\r' && c != 0 ) ; } else if ( c == 0 || c > ' ' ) { return c ; } } }
Get the next char in the string, skipping whitespace
 and comments (slashslash, slashstar, and hash).
Get the next char in the string skipping whitespace and comments ( slashslash slashstar and hash ) .