public boolean ifMatch(String val, int numargs) throws Exception {
    if (!current().equals(val)) {
      return false;
    }

    if (!test(numargs)) {
      throw new Exception("Invalid args");
    }

    pos++;
    return true;
  }
public boolean ifMatch ( String val , int numargs ) throws Exception { if ( ! current ( ) . equals ( val ) ) { return false ; } if ( ! test ( numargs ) ) { throw new Exception ( "Invalid args" ) ; } pos ++ ; return true ; }
@param val
@param numargs
@return true if the next arg matches the string and has a sufficient number
of parameters
@throws Exception