/* Generated By:JavaCC: Do not edit this line. DSigParser.java */
package w3c.pics.parser;

import java.io.*;
import java.util.*;

public class DSigParser implements DSigParserConstants {

    public static void main(String args[]) throws ParseException {
         try {
             FileInputStream input = new FileInputStream(args[1]);
             DSigParser parser = new DSigParser(input);
             Vector top = new Vector();
             if (args[0].equals("-resinfo"))
                 parser.resInfo(top);
             else
                 parser.sigExt(top);
             System.out.println(top);
         }
         catch (IOException e) {
             System.out.println("I/O Error");
         }
    }

/* This is the entry procedure for SigBlocks */
  static final public void sigExt(Vector top) throws ParseException {
         Vector retval = null;
    retval = AttributionInfo();
             top.addElement(retval);
    label_1:
    while (true) {
      switch ((jj_ntk==-1)?jj_ntk():jj_ntk) {
      case L_PAREN:
        ;
        break;
      default:
        jj_la1[0] = jj_gen;
        break label_1;
      }
      retval = Signature();
             top.addElement(retval);
    }
  }

  static final public Vector AttributionInfo() throws ParseException {
         Vector retval = new Vector();
         Token thetoken = null;
         Vector cvector = null;
    jj_consume_token(L_PAREN);
    jj_consume_token(DQUOTE);
    thetoken = jj_consume_token(ATTRIB_INFO);
             retval.addElement(thetoken.image);
    jj_consume_token(DQUOTE);
    label_2:
    while (true) {
      switch ((jj_ntk==-1)?jj_ntk():jj_ntk) {
      case L_PAREN:
        ;
        break;
      default:
        jj_la1[1] = jj_gen;
        break label_2;
      }
      cvector = Certificate();
             retval.addElement(cvector);
    }
    jj_consume_token(R_PAREN);
             {if (true) return retval;}
    throw new Error("Missing return statement in function");
  }

  static final public Vector Certificate() throws ParseException {
         Vector retval = new Vector();
         String rstring = null;
    jj_consume_token(L_PAREN);
    rstring = CertificateFamilyID();
             retval.addElement(rstring);
    rstring = CertificateData();
             retval.addElement(rstring);
    jj_consume_token(R_PAREN);
             {if (true) return retval;}
    throw new Error("Missing return statement in function");
  }

  static final public String CertificateFamilyID() throws ParseException {
         String retval = null;
    retval = quotedURL();
             {if (true) return retval;}
    throw new Error("Missing return statement in function");
  }

  static final public String CertificateData() throws ParseException {
         String retval = null;
    if (jj_2_1(2147483647)) {
      retval = quotedBase64String();
             {if (true) return retval;}
    } else {
      switch ((jj_ntk==-1)?jj_ntk():jj_ntk) {
      case DQUOTE:
        retval = quotedURL();
             {if (true) return retval;}
        break;
      default:
        jj_la1[2] = jj_gen;
        jj_consume_token(-1);
        throw new ParseException();
      }
    }
    throw new Error("Missing return statement in function");
  }

  static final public Vector Signature() throws ParseException {
         Vector retval = new Vector();
         String rstring = null;
         Vector rvector = null;
         Token thetoken = null;
    jj_consume_token(L_PAREN);
    jj_consume_token(DQUOTE);
    thetoken = jj_consume_token(SIGNATURE);
             retval.addElement(thetoken.image);
    jj_consume_token(DQUOTE);
    rstring = SignatureSuiteID();
             retval.addElement(rstring);
    label_3:
    while (true) {
      rvector = SigData();
             retval.addElement(rvector);
      switch ((jj_ntk==-1)?jj_ntk():jj_ntk) {
      case L_PAREN:
        ;
        break;
      default:
        jj_la1[3] = jj_gen;
        break label_3;
      }
    }
    jj_consume_token(R_PAREN);
             {if (true) return retval;}
    throw new Error("Missing return statement in function");
  }

  static final public String SignatureSuiteID() throws ParseException {
         String retval = null;
    retval = quotedURL();
             {if (true) return retval;}
    throw new Error("Missing return statement in function");
  }

  static final public Vector SigData() throws ParseException {
         Vector retval = new Vector();
         String rstring = null;
         Vector rvector = null;
    jj_consume_token(L_PAREN);
    rstring = SigTokenString();
             retval.addElement(rstring);
    rvector = SigInfo();
             if ((rvector.size()==1) &&
                 (rvector.firstElement() instanceof String))
                 retval.addElement(rvector.firstElement().toString());
             else
                 retval.addElement(rvector);
    jj_consume_token(R_PAREN);
             {if (true) return retval;}
    throw new Error("Missing return statement in function");
  }

  static final public String SigTokenString() throws ParseException {
         String retval = null;
    retval = quotedName();
             {if (true) return retval;}
    throw new Error("Missing return statement in function");
  }

  static final public Vector SigInfo() throws ParseException {
         Vector retval = null;
         String rstring = null;
    switch ((jj_ntk==-1)?jj_ntk():jj_ntk) {
    case DIGIT:
    case DQUOTE:
    case MINUS:
    case PLUS:
      rstring = SigInfoString();
             retval = new Vector();
             retval.addElement(rstring);
             {if (true) return retval;}
      break;
    case L_PAREN:
      retval = SigInfoVector();
             {if (true) return retval;}
      break;
    default:
      jj_la1[4] = jj_gen;
      jj_consume_token(-1);
      throw new ParseException();
    }
    throw new Error("Missing return statement in function");
  }

  static final public String SigInfoString() throws ParseException {
         String retval = null;
    if (jj_2_2(2147483647)) {
      retval = quotedISOdate();
    } else if (jj_2_3(2147483647)) {
      retval = quotedBase64String();
    } else if (jj_2_4(2147483647)) {
      retval = quotedURL();
    } else {
      switch ((jj_ntk==-1)?jj_ntk():jj_ntk) {
      case DQUOTE:
        retval = quotedName();
        break;
      case DIGIT:
      case MINUS:
      case PLUS:
        retval = number();
        break;
      default:
        jj_la1[5] = jj_gen;
        jj_consume_token(-1);
        throw new ParseException();
      }
    }
             {if (true) return retval;}
    throw new Error("Missing return statement in function");
  }

  static final public Vector SigInfoVector() throws ParseException {
         Vector retval = new Vector();
         Vector rvector = null;
    if (jj_2_5(2147483647)) {
      retval = SigData();
             {if (true) return retval;}
    } else {
      switch ((jj_ntk==-1)?jj_ntk():jj_ntk) {
      case L_PAREN:
        jj_consume_token(L_PAREN);
        label_4:
        while (true) {
          rvector = SigInfo();
                 retval.addElement(rvector);
          switch ((jj_ntk==-1)?jj_ntk():jj_ntk) {
          case DIGIT:
          case L_PAREN:
          case DQUOTE:
          case MINUS:
          case PLUS:
            ;
            break;
          default:
            jj_la1[6] = jj_gen;
            break label_4;
          }
        }
        jj_consume_token(R_PAREN);
             {if (true) return retval;}
        break;
      default:
        jj_la1[7] = jj_gen;
        jj_consume_token(-1);
        throw new ParseException();
      }
    }
    throw new Error("Missing return statement in function");
  }

  static final public String quotedURL() throws ParseException {
         String retval = null;
    jj_consume_token(DQUOTE);
    retval = URL();
    jj_consume_token(DQUOTE);
             {if (true) return retval;}
    throw new Error("Missing return statement in function");
  }

  static final public String URL() throws ParseException {
         String temp = null;
         String retval = new String("");
    label_5:
    while (true) {
      temp = urlchar();
             retval+=temp;
      switch ((jj_ntk==-1)?jj_ntk():jj_ntk) {
      case LOWALPHA:
      case HIGHALPHA:
      case DIGIT:
      case TILDE:
      case ATSIGN:
      case SLASH:
      case L_PAREN:
      case R_PAREN:
      case DOLLAR:
      case MINUS:
      case USCORE:
      case DOT:
      case PLUS:
      case SEMI:
      case QUES:
      case COLON:
      case AMP:
      case EQUAL:
      case BANG:
      case STAR:
      case COMMA:
      case POUND:
      case PERCENT:
      case ATTRIB_INFO:
      case SIGNATURE:
        ;
        break;
      default:
        jj_la1[8] = jj_gen;
        break label_5;
      }
    }
             {if (true) return retval;}
    throw new Error("Missing return statement in function");
  }

  static final public String urlchar() throws ParseException {
         String retval = null;
         Token thetoken = null;
    switch ((jj_ntk==-1)?jj_ntk():jj_ntk) {
    case DOT:
      thetoken = jj_consume_token(DOT);
      break;
    case DOLLAR:
      thetoken = jj_consume_token(DOLLAR);
      break;
    case COMMA:
      thetoken = jj_consume_token(COMMA);
      break;
    case SEMI:
      thetoken = jj_consume_token(SEMI);
      break;
    case COLON:
      thetoken = jj_consume_token(COLON);
      break;
    case AMP:
      thetoken = jj_consume_token(AMP);
      break;
    case EQUAL:
      thetoken = jj_consume_token(EQUAL);
      break;
    case QUES:
      thetoken = jj_consume_token(QUES);
      break;
    case BANG:
      thetoken = jj_consume_token(BANG);
      break;
    case STAR:
      thetoken = jj_consume_token(STAR);
      break;
    case TILDE:
      thetoken = jj_consume_token(TILDE);
      break;
    case ATSIGN:
      thetoken = jj_consume_token(ATSIGN);
      break;
    case POUND:
      thetoken = jj_consume_token(POUND);
      break;
    case USCORE:
      thetoken = jj_consume_token(USCORE);
      break;
    case L_PAREN:
      thetoken = jj_consume_token(L_PAREN);
      break;
    case R_PAREN:
      thetoken = jj_consume_token(R_PAREN);
      break;
    case SLASH:
      thetoken = jj_consume_token(SLASH);
      break;
    case LOWALPHA:
    case HIGHALPHA:
    case DIGIT:
    case MINUS:
    case PLUS:
      retval = alphaNumPM();
      break;
    case PERCENT:
      retval = escape();
      break;
    case ATTRIB_INFO:
    case SIGNATURE:
      retval = reservedString();
      break;
    default:
      jj_la1[9] = jj_gen;
      jj_consume_token(-1);
      throw new ParseException();
    }
             if (thetoken!=null) {
                 if (thetoken.specialToken!=null)
                     retval=" "+thetoken.image;
                 else
                     retval=thetoken.image;
             }
             {if (true) return retval;}
    throw new Error("Missing return statement in function");
  }

  static final public String alphaNumPM() throws ParseException {
         String retval = null;
         Token thetoken = null;
    switch ((jj_ntk==-1)?jj_ntk():jj_ntk) {
    case LOWALPHA:
    case HIGHALPHA:
    case MINUS:
    case PLUS:
      switch ((jj_ntk==-1)?jj_ntk():jj_ntk) {
      case LOWALPHA:
      case HIGHALPHA:
        retval = alpha();
        break;
      case MINUS:
      case PLUS:
        retval = sign();
        break;
      default:
        jj_la1[10] = jj_gen;
        jj_consume_token(-1);
        throw new ParseException();
      }
             {if (true) return retval;}
      break;
    case DIGIT:
      thetoken = jj_consume_token(DIGIT);
             {if (true) return thetoken.image;}
      break;
    default:
      jj_la1[11] = jj_gen;
      jj_consume_token(-1);
      throw new ParseException();
    }
    throw new Error("Missing return statement in function");
  }

  static final public String alpha() throws ParseException {
         Token thetoken = null;
    switch ((jj_ntk==-1)?jj_ntk():jj_ntk) {
    case LOWALPHA:
      thetoken = jj_consume_token(LOWALPHA);
      break;
    case HIGHALPHA:
      thetoken = jj_consume_token(HIGHALPHA);
      break;
    default:
      jj_la1[12] = jj_gen;
      jj_consume_token(-1);
      throw new ParseException();
    }
             {if (true) return thetoken.image;}
    throw new Error("Missing return statement in function");
  }

  static final public String sign() throws ParseException {
         Token thetoken = null;
    switch ((jj_ntk==-1)?jj_ntk():jj_ntk) {
    case PLUS:
      thetoken = jj_consume_token(PLUS);
      break;
    case MINUS:
      thetoken = jj_consume_token(MINUS);
      break;
    default:
      jj_la1[13] = jj_gen;
      jj_consume_token(-1);
      throw new ParseException();
    }
             {if (true) return thetoken.image;}
    throw new Error("Missing return statement in function");
  }

  static final public String escape() throws ParseException {
         String temp = null;
         String retval = new String("%");
    jj_consume_token(PERCENT);
    temp = hex();
             retval+=temp;
    temp = hex();
             retval+=temp;
             {if (true) return retval;}
    throw new Error("Missing return statement in function");
  }

  static final public String hex() throws ParseException {
         Token hextoken = null;
    switch ((jj_ntk==-1)?jj_ntk():jj_ntk) {
    case DIGIT:
      hextoken = jj_consume_token(DIGIT);
      break;
    case LOWALPHA:
      hextoken = jj_consume_token(LOWALPHA);
             char testchar1 = hextoken.image.charAt(0);
             if ((testchar1>'f') || (testchar1<'a'))
                 {if (true) throw generateParseException();}
      break;
    case HIGHALPHA:
      hextoken = jj_consume_token(HIGHALPHA);
             char testchar2 = hextoken.image.charAt(0);
             if ((testchar2>'F') || (testchar2<'A'))
                 {if (true) throw generateParseException();}
      break;
    default:
      jj_la1[14] = jj_gen;
      jj_consume_token(-1);
      throw new ParseException();
    }
             {if (true) return hextoken.image;}
    throw new Error("Missing return statement in function");
  }

  static final public String reservedString() throws ParseException {
         Token thetoken = null;
    switch ((jj_ntk==-1)?jj_ntk():jj_ntk) {
    case ATTRIB_INFO:
      thetoken = jj_consume_token(ATTRIB_INFO);
      break;
    case SIGNATURE:
      thetoken = jj_consume_token(SIGNATURE);
      break;
    default:
      jj_la1[15] = jj_gen;
      jj_consume_token(-1);
      throw new ParseException();
    }
             {if (true) return thetoken.image;}
    throw new Error("Missing return statement in function");
  }

  static final public String number() throws ParseException {
         String retval = "";
         String temp = null;
    switch ((jj_ntk==-1)?jj_ntk():jj_ntk) {
    case MINUS:
    case PLUS:
      temp = sign();
             retval+=temp;
      break;
    default:
      jj_la1[16] = jj_gen;
      ;
    }
    temp = unsignedint();
             retval+=temp;
    switch ((jj_ntk==-1)?jj_ntk():jj_ntk) {
    case DOT:
      jj_consume_token(DOT);
             retval+=".";
      switch ((jj_ntk==-1)?jj_ntk():jj_ntk) {
      case DIGIT:
        temp = unsignedint();
             retval+=temp;
        break;
      default:
        jj_la1[17] = jj_gen;
        ;
      }
      break;
    default:
      jj_la1[18] = jj_gen;
      ;
    }
             {if (true) return retval;}
    throw new Error("Missing return statement in function");
  }

  static final public String unsignedint() throws ParseException {
         String retval = "";
         Token thetoken = null;
    label_6:
    while (true) {
      thetoken = jj_consume_token(DIGIT);
             retval+=thetoken.image;
      switch ((jj_ntk==-1)?jj_ntk():jj_ntk) {
      case DIGIT:
        ;
        break;
      default:
        jj_la1[19] = jj_gen;
        break label_6;
      }
    }
             {if (true) return retval;}
    throw new Error("Missing return statement in function");
  }

  static final public String quotedBase64String() throws ParseException {
         String retval = "";
         String temp = null;
    jj_consume_token(DQUOTE);
    label_7:
    while (true) {
      switch ((jj_ntk==-1)?jj_ntk():jj_ntk) {
      case LOWALPHA:
      case HIGHALPHA:
      case DIGIT:
      case SLASH:
      case PLUS:
      case EQUAL:
        ;
        break;
      default:
        jj_la1[20] = jj_gen;
        break label_7;
      }
      temp = base64char();
             retval+=temp;
    }
    jj_consume_token(DQUOTE);
             {if (true) return retval;}
    throw new Error("Missing return statement in function");
  }

  static final public String base64char() throws ParseException {
         Token thetoken = null;
    switch ((jj_ntk==-1)?jj_ntk():jj_ntk) {
    case HIGHALPHA:
      thetoken = jj_consume_token(HIGHALPHA);
      break;
    case LOWALPHA:
      thetoken = jj_consume_token(LOWALPHA);
      break;
    case DIGIT:
      thetoken = jj_consume_token(DIGIT);
      break;
    case PLUS:
      thetoken = jj_consume_token(PLUS);
      break;
    case SLASH:
      thetoken = jj_consume_token(SLASH);
      break;
    case EQUAL:
      thetoken = jj_consume_token(EQUAL);
      break;
    default:
      jj_la1[21] = jj_gen;
      jj_consume_token(-1);
      throw new ParseException();
    }
             {if (true) return thetoken.image;}
    throw new Error("Missing return statement in function");
  }

  static final public String quotedISOdate() throws ParseException {
         Token tee = null;
         String retval = new String("");
         String temp = null;
    jj_consume_token(DQUOTE);
    temp = ISOyear();
             retval+=temp;
    switch ((jj_ntk==-1)?jj_ntk():jj_ntk) {
    case DOT:
      tee = jj_consume_token(DOT);
      break;
    case MINUS:
      tee = jj_consume_token(MINUS);
      break;
    default:
      jj_la1[22] = jj_gen;
      jj_consume_token(-1);
      throw new ParseException();
    }
             retval+=tee.image;
    temp = ISOmonth();
             retval+=temp;
    switch ((jj_ntk==-1)?jj_ntk():jj_ntk) {
    case DOT:
      tee = jj_consume_token(DOT);
      break;
    case MINUS:
      tee = jj_consume_token(MINUS);
      break;
    default:
      jj_la1[23] = jj_gen;
      jj_consume_token(-1);
      throw new ParseException();
    }
             retval+=tee.image;
    temp = ISOday();
             retval+=temp;
    switch ((jj_ntk==-1)?jj_ntk():jj_ntk) {
    case HIGHALPHA:
      tee = jj_consume_token(HIGHALPHA);
      break;
    case LOWALPHA:
      tee = jj_consume_token(LOWALPHA);
      break;
    default:
      jj_la1[24] = jj_gen;
      jj_consume_token(-1);
      throw new ParseException();
    }
             if (!tee.image.equals("T"))
                 {if (true) throw generateParseException();}
    temp = ISOhour();
             retval+="T"+temp;
    jj_consume_token(COLON);
    temp = ISOminute();
             retval+=":"+temp;
    switch ((jj_ntk==-1)?jj_ntk():jj_ntk) {
    case COLON:
      jj_consume_token(COLON);
      temp = ISOsecond();
             retval+=":"+temp;
      switch ((jj_ntk==-1)?jj_ntk():jj_ntk) {
      case DOT:
        jj_consume_token(DOT);
        temp = ISOdecimal();
                     retval+="."+temp;
        break;
      default:
        jj_la1[25] = jj_gen;
        ;
      }
      break;
    default:
      jj_la1[26] = jj_gen;
      ;
    }
    temp = sign();
             retval+=temp;
    temp = ISOtimezone();
             retval+=temp;
    jj_consume_token(DQUOTE);
             {if (true) return retval;}
    throw new Error("Missing return statement in function");
  }

/* ISODate parsing productions */
  static final public String ISOyear() throws ParseException {
         Token token1 = null;
         Token token2 = null;
         Token token3 = null;
         Token token4 = null;
         String retval = new String("");
    token1 = jj_consume_token(DIGIT);
    token2 = jj_consume_token(DIGIT);
    token3 = jj_consume_token(DIGIT);
    token4 = jj_consume_token(DIGIT);
             retval+=token1.image;
             retval+=token2.image;
             retval+=token3.image;
             retval+=token4.image;
             {if (true) return retval;}
    throw new Error("Missing return statement in function");
  }

  static final public String ISOmonth() throws ParseException {
         Token token1 = null;
         Token token2 = null;
         String retval = new String("");
    token1 = jj_consume_token(DIGIT);
    token2 = jj_consume_token(DIGIT);
             retval+=token1.image;
             retval+=token2.image;
             int month = Integer.valueOf(retval).intValue();
             if ((month>12) || (month<1)) {
                 {if (true) throw generateParseException();}
             }
             {if (true) return retval;}
    throw new Error("Missing return statement in function");
  }

  static final public String ISOday() throws ParseException {
         Token token1 = null;
         Token token2 = null;
         String retval = new String("");
    token1 = jj_consume_token(DIGIT);
    token2 = jj_consume_token(DIGIT);
             retval+=token1.image;
             retval+=token2.image;
             int day = Integer.valueOf(retval).intValue();
             if ((day>31) || (day<1)) {
                 {if (true) throw generateParseException();}
             }
             {if (true) return retval;}
    throw new Error("Missing return statement in function");
  }

  static final public String ISOhour() throws ParseException {
         Token token1 = null;
         Token token2 = null;
         String retval = new String("");
    token1 = jj_consume_token(DIGIT);
    token2 = jj_consume_token(DIGIT);
             retval+=token1.image;
             retval+=token2.image;
             int hour = Integer.valueOf(retval).intValue();
             if ((hour>23) || (hour<0)) {
                 {if (true) throw generateParseException();}
             }
             {if (true) return retval;}
    throw new Error("Missing return statement in function");
  }

  static final public String ISOminute() throws ParseException {
         Token token1 = null;
         Token token2 = null;
         String retval = new String("");
    token1 = jj_consume_token(DIGIT);
    token2 = jj_consume_token(DIGIT);
             retval+=token1.image;
             retval+=token2.image;
             int minute = Integer.valueOf(retval).intValue();
             if ((minute>60) || (minute<0)) {
                 {if (true) throw generateParseException();}
             }
             {if (true) return retval;}
    throw new Error("Missing return statement in function");
  }

  static final public String ISOsecond() throws ParseException {
         Token token1 = null;
         Token token2 = null;
         String retval = new String("");
    token1 = jj_consume_token(DIGIT);
    token2 = jj_consume_token(DIGIT);
             retval+=token1.image;
             retval+=token2.image;
             int second = Integer.valueOf(retval).intValue();
             if ((second>60) || (second<0)) {
                 {if (true) throw generateParseException();}
             }
             {if (true) return retval;}
    throw new Error("Missing return statement in function");
  }

  static final public String ISOdecimal() throws ParseException {
         Token token1 = null;
         String retval = new String("");
    label_8:
    while (true) {
      token1 = jj_consume_token(DIGIT);
             retval+=token1.image;
      switch ((jj_ntk==-1)?jj_ntk():jj_ntk) {
      case DIGIT:
        ;
        break;
      default:
        jj_la1[27] = jj_gen;
        break label_8;
      }
    }
             {if (true) return retval;}
    throw new Error("Missing return statement in function");
  }

  static final public String ISOtimezone() throws ParseException {
         Token token1 = null;
         Token token2 = null;
         Token token3 = null;
         Token token4 = null;
         String retval = new String("");
    token1 = jj_consume_token(DIGIT);
    token2 = jj_consume_token(DIGIT);
    token3 = jj_consume_token(DIGIT);
    token4 = jj_consume_token(DIGIT);
             retval+=token1.image;
             retval+=token2.image;
             retval+=token3.image;
             retval+=token4.image;
             {if (true) return retval;}
    throw new Error("Missing return statement in function");
  }

  static final public String quotedName() throws ParseException {
         String temp = null;
         String retval = new String("");
    jj_consume_token(DQUOTE);
    label_9:
    while (true) {
      temp = urlchar();
             retval+=temp;
      switch ((jj_ntk==-1)?jj_ntk():jj_ntk) {
      case LOWALPHA:
      case HIGHALPHA:
      case DIGIT:
      case TILDE:
      case ATSIGN:
      case SLASH:
      case L_PAREN:
      case R_PAREN:
      case DOLLAR:
      case MINUS:
      case USCORE:
      case DOT:
      case PLUS:
      case SEMI:
      case QUES:
      case COLON:
      case AMP:
      case EQUAL:
      case BANG:
      case STAR:
      case COMMA:
      case POUND:
      case PERCENT:
      case ATTRIB_INFO:
      case SIGNATURE:
        ;
        break;
      default:
        jj_la1[28] = jj_gen;
        break label_9;
      }
    }
    jj_consume_token(DQUOTE);
             {if (true) return retval;}
    throw new Error("Missing return statement in function");
  }

/* This is the entry procedure for ResInfos */
  static final public void resInfo(Vector top) throws ParseException {
         Vector retval = null;
    label_10:
    while (true) {
      retval = resinfoData();
             top.addElement(retval);
      switch ((jj_ntk==-1)?jj_ntk():jj_ntk) {
      case L_PAREN:
        ;
        break;
      default:
        jj_la1[29] = jj_gen;
        break label_10;
      }
    }
  }

  static final public Vector resinfoData() throws ParseException {
         Vector retval = new Vector();
         String rstring = null;
    jj_consume_token(L_PAREN);
    rstring = HashAlogID();
             retval.addElement(rstring);
    rstring = resourceHash();
             retval.addElement(rstring);
    switch ((jj_ntk==-1)?jj_ntk():jj_ntk) {
    case DQUOTE:
      hashDate();
      break;
    default:
      jj_la1[30] = jj_gen;
      ;
    }
    jj_consume_token(R_PAREN);
             {if (true) return retval;}
    throw new Error("Missing return statement in function");
  }

  static final public String HashAlogID() throws ParseException {
         String retval = null;
    retval = quotedURL();
             {if (true) return retval;}
    throw new Error("Missing return statement in function");
  }

  static final public String resourceHash() throws ParseException {
         String retval = null;
    retval = quotedBase64String();
             {if (true) return retval;}
    throw new Error("Missing return statement in function");
  }

  static final public String hashDate() throws ParseException {
         String retval = null;
    retval = quotedISOdate();
             {if (true) return retval;}
    throw new Error("Missing return statement in function");
  }

  static final private boolean jj_2_1(int xla) {
    jj_la = xla; jj_lastpos = jj_scanpos = token;
    boolean retval = !jj_3_1();
    jj_save(0, xla);
    return retval;
  }

  static final private boolean jj_2_2(int xla) {
    jj_la = xla; jj_lastpos = jj_scanpos = token;
    boolean retval = !jj_3_2();
    jj_save(1, xla);
    return retval;
  }

  static final private boolean jj_2_3(int xla) {
    jj_la = xla; jj_lastpos = jj_scanpos = token;
    boolean retval = !jj_3_3();
    jj_save(2, xla);
    return retval;
  }

  static final private boolean jj_2_4(int xla) {
    jj_la = xla; jj_lastpos = jj_scanpos = token;
    boolean retval = !jj_3_4();
    jj_save(3, xla);
    return retval;
  }

  static final private boolean jj_2_5(int xla) {
    jj_la = xla; jj_lastpos = jj_scanpos = token;
    boolean retval = !jj_3_5();
    jj_save(4, xla);
    return retval;
  }

  static final private boolean jj_3R_16() {
    if (jj_scan_token(DIGIT)) return true;
    if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;
    if (jj_scan_token(DIGIT)) return true;
    if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;
    if (jj_scan_token(DIGIT)) return true;
    if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;
    if (jj_scan_token(DIGIT)) return true;
    if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;
    return false;
  }

  static final private boolean jj_3R_36() {
    if (jj_scan_token(PLUS)) return true;
    if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;
    return false;
  }

  static final private boolean jj_3R_28() {
    Token xsp;
    xsp = jj_scanpos;
    if (jj_3R_36()) {
    jj_scanpos = xsp;
    if (jj_3R_37()) return true;
    if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;
    } else if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;
    return false;
  }

  static final private boolean jj_3R_73() {
    if (jj_3R_83()) return true;
    if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;
    return false;
  }

  static final private boolean jj_3_1() {
    if (jj_3R_11()) return true;
    if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;
    return false;
  }

  static final private boolean jj_3R_68() {
    if (jj_scan_token(L_PAREN)) return true;
    if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;
    return false;
  }

  static final private boolean jj_3R_95() {
    if (jj_3R_28()) return true;
    if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;
    return false;
  }

  static final private boolean jj_3R_65() {
    if (jj_scan_token(ATSIGN)) return true;
    if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;
    return false;
  }

  static final private boolean jj_3R_62() {
    if (jj_scan_token(BANG)) return true;
    if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;
    return false;
  }

  static final private boolean jj_3R_102() {
    if (jj_scan_token(LOWALPHA)) return true;
    if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;
    return false;
  }

  static final private boolean jj_3R_59() {
    if (jj_scan_token(AMP)) return true;
    if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;
    return false;
  }

  static final private boolean jj_3R_101() {
    Token xsp;
    xsp = jj_scanpos;
    if (jj_3R_102()) {
    jj_scanpos = xsp;
    if (jj_3R_103()) return true;
    if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;
    } else if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;
    return false;
  }

  static final private boolean jj_3R_56() {
    if (jj_scan_token(COMMA)) return true;
    if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;
    return false;
  }

  static final private boolean jj_3R_35() {
    if (jj_scan_token(DOT)) return true;
    if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;
    if (jj_3R_48()) return true;
    if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;
    return false;
  }

  static final private boolean jj_3R_87() {
    if (jj_scan_token(DIGIT)) return true;
    if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;
    return false;
  }

  static final private boolean jj_3R_72() {
    if (jj_3R_82()) return true;
    if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;
    return false;
  }

  static final private boolean jj_3R_70() {
    if (jj_scan_token(SLASH)) return true;
    if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;
    return false;
  }

  static final private boolean jj_3R_24() {
    if (jj_scan_token(LOWALPHA)) return true;
    if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;
    return false;
  }

  static final private boolean jj_3R_94() {
    if (jj_3R_101()) return true;
    if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;
    return false;
  }

  static final private boolean jj_3R_67() {
    if (jj_scan_token(USCORE)) return true;
    if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;
    return false;
  }

  static final private boolean jj_3R_86() {
    Token xsp;
    xsp = jj_scanpos;
    if (jj_3R_94()) {
    jj_scanpos = xsp;
    if (jj_3R_95()) return true;
    if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;
    } else if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;
    return false;
  }

  static final private boolean jj_3R_81() {
    Token xsp;
    xsp = jj_scanpos;
    if (jj_3R_86()) {
    jj_scanpos = xsp;
    if (jj_3R_87()) return true;
    if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;
    } else if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;
    return false;
  }

  static final private boolean jj_3R_61() {
    if (jj_scan_token(QUES)) return true;
    if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;
    return false;
  }

  static final private boolean jj_3R_64() {
    if (jj_scan_token(TILDE)) return true;
    if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;
    return false;
  }

  static final private boolean jj_3R_27() {
    if (jj_scan_token(COLON)) return true;
    if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;
    if (jj_3R_34()) return true;
    if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;
    Token xsp;
    xsp = jj_scanpos;
    if (jj_3R_35()) jj_scanpos = xsp;
    else if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;
    return false;
  }

  static final private boolean jj_3R_58() {
    if (jj_scan_token(COLON)) return true;
    if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;
    return false;
  }

  static final private boolean jj_3R_44() {
    if (jj_scan_token(DIGIT)) return true;
    if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;
    return false;
  }

  static final private boolean jj_3R_55() {
    if (jj_scan_token(DOLLAR)) return true;
    if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;
    return false;
  }

  static final private boolean jj_3R_47() {
    if (jj_scan_token(EQUAL)) return true;
    if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;
    return false;
  }

  static final private boolean jj_3R_50() {
    if (jj_3R_49()) return true;
    if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;
    return false;
  }

  static final private boolean jj_3R_21() {
    if (jj_scan_token(MINUS)) return true;
    if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;
    return false;
  }

  static final private boolean jj_3R_39() {
    if (jj_scan_token(DQUOTE)) return true;
    if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;
    Token xsp;
    if (jj_3R_50()) return true;
    if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;
    while (true) {
      xsp = jj_scanpos;
      if (jj_3R_50()) { jj_scanpos = xsp; break; }
      if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;
    }
    if (jj_scan_token(DQUOTE)) return true;
    if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;
    return false;
  }

  static final private boolean jj_3R_23() {
    if (jj_scan_token(HIGHALPHA)) return true;
    if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;
    return false;
  }

  static final private boolean jj_3R_71() {
    if (jj_3R_81()) return true;
    if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;
    return false;
  }

  static final private boolean jj_3R_69() {
    if (jj_scan_token(R_PAREN)) return true;
    if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;
    return false;
  }

  static final private boolean jj_3R_66() {
    if (jj_scan_token(POUND)) return true;
    if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;
    return false;
  }

  static final private boolean jj_3R_63() {
    if (jj_scan_token(STAR)) return true;
    if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;
    return false;
  }

  static final private boolean jj_3R_18() {
    if (jj_scan_token(MINUS)) return true;
    if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;
    return false;
  }

  static final private boolean jj_3R_60() {
    if (jj_scan_token(EQUAL)) return true;
    if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;
    return false;
  }

  static final private boolean jj_3R_57() {
    if (jj_scan_token(SEMI)) return true;
    if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;
    return false;
  }

  static final private boolean jj_3R_54() {
    if (jj_scan_token(DOT)) return true;
    if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;
    return false;
  }

  static final private boolean jj_3R_20() {
    if (jj_scan_token(DOT)) return true;
    if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;
    return false;
  }

  static final private boolean jj_3R_49() {
    Token xsp;
    xsp = jj_scanpos;
    if (jj_3R_54()) {
    jj_scanpos = xsp;
    if (jj_3R_55()) {
    jj_scanpos = xsp;
    if (jj_3R_56()) {
    jj_scanpos = xsp;
    if (jj_3R_57()) {
    jj_scanpos = xsp;
    if (jj_3R_58()) {
    jj_scanpos = xsp;
    if (jj_3R_59()) {
    jj_scanpos = xsp;
    if (jj_3R_60()) {
    jj_scanpos = xsp;
    if (jj_3R_61()) {
    jj_scanpos = xsp;
    if (jj_3R_62()) {
    jj_scanpos = xsp;
    if (jj_3R_63()) {
    jj_scanpos = xsp;
    if (jj_3R_64()) {
    jj_scanpos = xsp;
    if (jj_3R_65()) {
    jj_scanpos = xsp;
    if (jj_3R_66()) {
    jj_scanpos = xsp;
    if (jj_3R_67()) {
    jj_scanpos = xsp;
    if (jj_3R_68()) {
    jj_scanpos = xsp;
    if (jj_3R_69()) {
    jj_scanpos = xsp;
    if (jj_3R_70()) {
    jj_scanpos = xsp;
    if (jj_3R_71()) {
    jj_scanpos = xsp;
    if (jj_3R_72()) {
    jj_scanpos = xsp;
    if (jj_3R_73()) return true;
    if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;
    } else if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;
    } else if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;
    } else if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;
    } else if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;
    } else if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;
    } else if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;
    } else if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;
    } else if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;
    } else if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;
    } else if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;
    } else if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;
    } else if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;
    } else if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;
    } else if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;
    } else if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;
    } else if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;
    } else if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;
    } else if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;
    } else if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;
    return false;
  }

  static final private boolean jj_3R_43() {
    if (jj_scan_token(LOWALPHA)) return true;
    if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;
    return false;
  }

  static final private boolean jj_3R_46() {
    if (jj_scan_token(SLASH)) return true;
    if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;
    return false;
  }

  static final private boolean jj_3R_17() {
    if (jj_scan_token(DOT)) return true;
    if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;
    return false;
  }

  static final private boolean jj_3R_29() {
    if (jj_scan_token(DIGIT)) return true;
    if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;
    if (jj_scan_token(DIGIT)) return true;
    if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;
    if (jj_scan_token(DIGIT)) return true;
    if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;
    if (jj_scan_token(DIGIT)) return true;
    if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;
    return false;
  }

  static final private boolean jj_3R_12() {
    if (jj_scan_token(DQUOTE)) return true;
    if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;
    if (jj_3R_16()) return true;
    if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;
    Token xsp;
    xsp = jj_scanpos;
    if (jj_3R_17()) {
    jj_scanpos = xsp;
    if (jj_3R_18()) return true;
    if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;
    } else if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;
    if (jj_3R_19()) return true;
    if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;
    xsp = jj_scanpos;
    if (jj_3R_20()) {
    jj_scanpos = xsp;
    if (jj_3R_21()) return true;
    if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;
    } else if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;
    if (jj_3R_22()) return true;
    if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;
    xsp = jj_scanpos;
    if (jj_3R_23()) {
    jj_scanpos = xsp;
    if (jj_3R_24()) return true;
    if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;
    } else if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;
    if (jj_3R_25()) return true;
    if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;
    if (jj_scan_token(COLON)) return true;
    if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;
    if (jj_3R_26()) return true;
    if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;
    xsp = jj_scanpos;
    if (jj_3R_27()) jj_scanpos = xsp;
    else if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;
    if (jj_3R_28()) return true;
    if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;
    if (jj_3R_29()) return true;
    if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;
    if (jj_scan_token(DQUOTE)) return true;
    if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;
    return false;
  }

  static final private boolean jj_3R_77() {
    if (jj_3R_39()) return true;
    if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;
    return false;
  }

  static final private boolean jj_3R_38() {
    if (jj_3R_49()) return true;
    if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;
    return false;
  }

  static final private boolean jj_3R_30() {
    Token xsp;
    if (jj_3R_38()) return true;
    if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;
    while (true) {
      xsp = jj_scanpos;
      if (jj_3R_38()) { jj_scanpos = xsp; break; }
      if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;
    }
    return false;
  }

  static final private boolean jj_3R_45() {
    if (jj_scan_token(PLUS)) return true;
    if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;
    return false;
  }

  static final private boolean jj_3R_42() {
    if (jj_scan_token(HIGHALPHA)) return true;
    if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;
    return false;
  }

  static final private boolean jj_3R_53() {
    if (jj_scan_token(DIGIT)) return true;
    if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;
    return false;
  }

  static final private boolean jj_3R_33() {
    Token xsp;
    xsp = jj_scanpos;
    if (jj_3R_42()) {
    jj_scanpos = xsp;
    if (jj_3R_43()) {
    jj_scanpos = xsp;
    if (jj_3R_44()) {
    jj_scanpos = xsp;
    if (jj_3R_45()) {
    jj_scanpos = xsp;
    if (jj_3R_46()) {
    jj_scanpos = xsp;
    if (jj_3R_47()) return true;
    if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;
    } else if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;
    } else if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;
    } else if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;
    } else if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;
    } else if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;
    return false;
  }

  static final private boolean jj_3R_48() {
    Token xsp;
    if (jj_3R_53()) return true;
    if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;
    while (true) {
      xsp = jj_scanpos;
      if (jj_3R_53()) { jj_scanpos = xsp; break; }
      if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;
    }
    return false;
  }

  static final private boolean jj_3R_13() {
    if (jj_scan_token(DQUOTE)) return true;
    if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;
    if (jj_3R_30()) return true;
    if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;
    if (jj_scan_token(DQUOTE)) return true;
    if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;
    return false;
  }

  static final private boolean jj_3R_85() {
    if (jj_3R_32()) return true;
    if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;
    return false;
  }

  static final private boolean jj_3_5() {
    if (jj_3R_14()) return true;
    if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;
    return false;
  }

  static final private boolean jj_3R_80() {
    if (jj_scan_token(L_PAREN)) return true;
    if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;
    Token xsp;
    if (jj_3R_85()) return true;
    if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;
    while (true) {
      xsp = jj_scanpos;
      if (jj_3R_85()) { jj_scanpos = xsp; break; }
      if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;
    }
    if (jj_scan_token(R_PAREN)) return true;
    if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;
    return false;
  }

  static final private boolean jj_3R_15() {
    if (jj_3R_33()) return true;
    if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;
    return false;
  }

  static final private boolean jj_3R_11() {
    if (jj_scan_token(DQUOTE)) return true;
    if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;
    Token xsp;
    while (true) {
      xsp = jj_scanpos;
      if (jj_3R_15()) { jj_scanpos = xsp; break; }
      if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;
    }
    if (jj_scan_token(DQUOTE)) return true;
    if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;
    return false;
  }

  static final private boolean jj_3R_34() {
    if (jj_scan_token(DIGIT)) return true;
    if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;
    if (jj_scan_token(DIGIT)) return true;
    if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;
    return false;
  }

  static final private boolean jj_3R_52() {
    Token xsp;
    xsp = jj_scanpos;
    if (jj_3R_79()) {
    jj_scanpos = xsp;
    if (jj_3R_80()) return true;
    if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;
    } else if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;
    return false;
  }

  static final private boolean jj_3R_79() {
    if (jj_3R_14()) return true;
    if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;
    return false;
  }

  static final private boolean jj_3_4() {
    if (jj_3R_13()) return true;
    if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;
    return false;
  }

  static final private boolean jj_3_3() {
    if (jj_3R_11()) return true;
    if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;
    return false;
  }

  static final private boolean jj_3_2() {
    if (jj_3R_12()) return true;
    if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;
    return false;
  }

  static final private boolean jj_3R_78() {
    if (jj_3R_84()) return true;
    if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;
    return false;
  }

  static final private boolean jj_3R_99() {
    if (jj_scan_token(DIGIT)) return true;
    if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;
    return false;
  }

  static final private boolean jj_3R_76() {
    if (jj_3R_13()) return true;
    if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;
    return false;
  }

  static final private boolean jj_3R_92() {
    Token xsp;
    if (jj_3R_99()) return true;
    if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;
    while (true) {
      xsp = jj_scanpos;
      if (jj_3R_99()) { jj_scanpos = xsp; break; }
      if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;
    }
    return false;
  }

  static final private boolean jj_3R_75() {
    if (jj_3R_11()) return true;
    if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;
    return false;
  }

  static final private boolean jj_3R_74() {
    if (jj_3R_12()) return true;
    if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;
    return false;
  }

  static final private boolean jj_3R_51() {
    Token xsp;
    xsp = jj_scanpos;
    if (jj_3R_74()) {
    jj_scanpos = xsp;
    if (jj_3R_75()) {
    jj_scanpos = xsp;
    if (jj_3R_76()) {
    jj_scanpos = xsp;
    if (jj_3R_77()) {
    jj_scanpos = xsp;
    if (jj_3R_78()) return true;
    if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;
    } else if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;
    } else if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;
    } else if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;
    } else if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;
    return false;
  }

  static final private boolean jj_3R_26() {
    if (jj_scan_token(DIGIT)) return true;
    if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;
    if (jj_scan_token(DIGIT)) return true;
    if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;
    return false;
  }

  static final private boolean jj_3R_41() {
    if (jj_3R_52()) return true;
    if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;
    return false;
  }

  static final private boolean jj_3R_90() {
    if (jj_scan_token(SIGNATURE)) return true;
    if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;
    return false;
  }

  static final private boolean jj_3R_100() {
    if (jj_3R_92()) return true;
    if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;
    return false;
  }

  static final private boolean jj_3R_93() {
    if (jj_scan_token(DOT)) return true;
    if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;
    Token xsp;
    xsp = jj_scanpos;
    if (jj_3R_100()) jj_scanpos = xsp;
    else if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;
    return false;
  }

  static final private boolean jj_3R_32() {
    Token xsp;
    xsp = jj_scanpos;
    if (jj_3R_40()) {
    jj_scanpos = xsp;
    if (jj_3R_41()) return true;
    if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;
    } else if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;
    return false;
  }

  static final private boolean jj_3R_40() {
    if (jj_3R_51()) return true;
    if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;
    return false;
  }

  static final private boolean jj_3R_25() {
    if (jj_scan_token(DIGIT)) return true;
    if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;
    if (jj_scan_token(DIGIT)) return true;
    if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;
    return false;
  }

  static final private boolean jj_3R_91() {
    if (jj_3R_28()) return true;
    if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;
    return false;
  }

  static final private boolean jj_3R_84() {
    Token xsp;
    xsp = jj_scanpos;
    if (jj_3R_91()) jj_scanpos = xsp;
    else if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;
    if (jj_3R_92()) return true;
    if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;
    xsp = jj_scanpos;
    if (jj_3R_93()) jj_scanpos = xsp;
    else if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;
    return false;
  }

  static final private boolean jj_3R_31() {
    if (jj_3R_39()) return true;
    if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;
    return false;
  }

  static final private boolean jj_3R_89() {
    if (jj_scan_token(ATTRIB_INFO)) return true;
    if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;
    return false;
  }

  static final private boolean jj_3R_83() {
    Token xsp;
    xsp = jj_scanpos;
    if (jj_3R_89()) {
    jj_scanpos = xsp;
    if (jj_3R_90()) return true;
    if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;
    } else if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;
    return false;
  }

  static final private boolean jj_3R_22() {
    if (jj_scan_token(DIGIT)) return true;
    if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;
    if (jj_scan_token(DIGIT)) return true;
    if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;
    return false;
  }

  static final private boolean jj_3R_98() {
    if (jj_scan_token(HIGHALPHA)) return true;
    if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;
    return false;
  }

  static final private boolean jj_3R_14() {
    if (jj_scan_token(L_PAREN)) return true;
    if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;
    if (jj_3R_31()) return true;
    if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;
    if (jj_3R_32()) return true;
    if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;
    if (jj_scan_token(R_PAREN)) return true;
    if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;
    return false;
  }

  static final private boolean jj_3R_97() {
    if (jj_scan_token(LOWALPHA)) return true;
    if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;
    return false;
  }

  static final private boolean jj_3R_96() {
    if (jj_scan_token(DIGIT)) return true;
    if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;
    return false;
  }

  static final private boolean jj_3R_88() {
    Token xsp;
    xsp = jj_scanpos;
    if (jj_3R_96()) {
    jj_scanpos = xsp;
    if (jj_3R_97()) {
    jj_scanpos = xsp;
    if (jj_3R_98()) return true;
    if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;
    } else if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;
    } else if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;
    return false;
  }

  static final private boolean jj_3R_19() {
    if (jj_scan_token(DIGIT)) return true;
    if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;
    if (jj_scan_token(DIGIT)) return true;
    if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;
    return false;
  }

  static final private boolean jj_3R_37() {
    if (jj_scan_token(MINUS)) return true;
    if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;
    return false;
  }

  static final private boolean jj_3R_103() {
    if (jj_scan_token(HIGHALPHA)) return true;
    if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;
    return false;
  }

  static final private boolean jj_3R_82() {
    if (jj_scan_token(PERCENT)) return true;
    if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;
    if (jj_3R_88()) return true;
    if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;
    if (jj_3R_88()) return true;
    if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;
    return false;
  }

  static private boolean jj_initialized_once = false;
  static public DSigParserTokenManager token_source;
  static ASCII_CharStream jj_input_stream;
  static public Token token, jj_nt;
  static private int jj_ntk;
  static private Token jj_scanpos, jj_lastpos;
  static private int jj_la;
  static public boolean lookingAhead = false;
  static private boolean jj_semLA;
  static private int jj_gen;
  static final private int[] jj_la1 = new int[31];
  static final private int[] jj_la1_0 = {0x20000,0x20000,0x80000,0x20000,0x12a0080,0x1280080,0x12a0080,0x20000,0xfff7a0e0,0xfff7a0e0,0x1200060,0x12000e0,0x60,0x1200000,0xe0,0x0,0x1200000,0x80,0x800000,0x80,0x210100e0,0x210100e0,0xa00000,0xa00000,0x60,0x800000,0x8000000,0x80,0xfff7a0e0,0x20000,0x80000,};
  static final private int[] jj_la1_1 = {0x0,0x0,0x0,0x0,0x0,0x0,0x0,0x0,0x3c2,0x3c2,0x0,0x0,0x0,0x0,0x0,0x300,0x0,0x0,0x0,0x0,0x0,0x0,0x0,0x0,0x0,0x0,0x0,0x0,0x3c2,0x0,0x0,};
  static final private JJDSigParserCalls[] jj_2_rtns = new JJDSigParserCalls[5];
  static private boolean jj_rescan = false;
  static private int jj_gc = 0;

  public DSigParser(java.io.InputStream stream) {
    if (jj_initialized_once) {
      System.out.println("ERROR: Second call to constructor of static parser.  You must");
      System.out.println("       either use ReInit() or set the JavaCC option STATIC to false");
      System.out.println("       during parser generation.");
      throw new Error();
    }
    jj_initialized_once = true;
    jj_input_stream = new ASCII_CharStream(stream, 1, 1);
    token_source = new DSigParserTokenManager(jj_input_stream);
    token = new Token();
    jj_ntk = -1;
    jj_gen = 0;
    for (int i = 0; i < 31; i++) jj_la1[i] = -1;
    for (int i = 0; i < jj_2_rtns.length; i++) jj_2_rtns[i] = new JJDSigParserCalls();
  }

  static public void ReInit(java.io.InputStream stream) {
    jj_input_stream.ReInit(stream, 1, 1);
    token_source.ReInit(jj_input_stream);
    token = new Token();
    jj_ntk = -1;
    jj_gen = 0;
    for (int i = 0; i < 31; i++) jj_la1[i] = -1;
    for (int i = 0; i < jj_2_rtns.length; i++) jj_2_rtns[i] = new JJDSigParserCalls();
  }

  public DSigParser(DSigParserTokenManager tm) {
    if (jj_initialized_once) {
      System.out.println("ERROR: Second call to constructor of static parser.  You must");
      System.out.println("       either use ReInit() or set the JavaCC option STATIC to false");
      System.out.println("       during parser generation.");
      throw new Error();
    }
    jj_initialized_once = true;
    token_source = tm;
    token = new Token();
    jj_ntk = -1;
    jj_gen = 0;
    for (int i = 0; i < 31; i++) jj_la1[i] = -1;
    for (int i = 0; i < jj_2_rtns.length; i++) jj_2_rtns[i] = new JJDSigParserCalls();
  }

  public void ReInit(DSigParserTokenManager tm) {
    token_source = tm;
    token = new Token();
    jj_ntk = -1;
    jj_gen = 0;
    for (int i = 0; i < 31; i++) jj_la1[i] = -1;
    for (int i = 0; i < jj_2_rtns.length; i++) jj_2_rtns[i] = new JJDSigParserCalls();
  }

  static final private Token jj_consume_token(int kind) throws ParseException {
    Token oldToken;
    if ((oldToken = token).next != null) token = token.next;
    else token = token.next = token_source.getNextToken();
    jj_ntk = -1;
    if (token.kind == kind) {
      jj_gen++;
      if (++jj_gc > 100) {
        jj_gc = 0;
        for (int i = 0; i < jj_2_rtns.length; i++) {
          JJDSigParserCalls c = jj_2_rtns[i];
          while (c != null) {
            if (c.gen < jj_gen) c.first = null;
            c = c.next;
          }
        }
      }
      return token;
    }
    token = oldToken;
    jj_kind = kind;
    throw generateParseException();
  }

  static final private boolean jj_scan_token(int kind) {
    if (jj_scanpos == jj_lastpos) {
      jj_la--;
      if (jj_scanpos.next == null) {
        jj_lastpos = jj_scanpos = jj_scanpos.next = token_source.getNextToken();
      } else {
        jj_lastpos = jj_scanpos = jj_scanpos.next;
      }
    } else {
      jj_scanpos = jj_scanpos.next;
    }
    if (jj_rescan) {
      int i = 0; Token tok = token;
      while (tok != null && tok != jj_scanpos) { i++; tok = tok.next; }
      if (tok != null) jj_add_error_token(kind, i);
    }
    return (jj_scanpos.kind != kind);
  }

  static final public Token getNextToken() {
    if (token.next != null) token = token.next;
    else token = token.next = token_source.getNextToken();
    jj_ntk = -1;
    jj_gen++;
    return token;
  }

  static final public Token getToken(int index) {
    Token t = lookingAhead ? jj_scanpos : token;
    for (int i = 0; i < index; i++) {
      if (t.next != null) t = t.next;
      else t = t.next = token_source.getNextToken();
    }
    return t;
  }

  static final private int jj_ntk() {
    if ((jj_nt=token.next) == null)
      return (jj_ntk = (token.next=token_source.getNextToken()).kind);
    else
      return (jj_ntk = jj_nt.kind);
  }

  static private java.util.Vector jj_expentries = new java.util.Vector();
  static private int[] jj_expentry;
  static private int jj_kind = -1;
  static private int[] jj_lasttokens = new int[100];
  static private int jj_endpos;

  static private void jj_add_error_token(int kind, int pos) {
    if (pos >= 100) return;
    if (pos == jj_endpos + 1) {
      jj_lasttokens[jj_endpos++] = kind;
    } else if (jj_endpos != 0) {
      jj_expentry = new int[jj_endpos];
      for (int i = 0; i < jj_endpos; i++) {
        jj_expentry[i] = jj_lasttokens[i];
      }
      boolean exists = false;
      for (java.util.Enumeration enum = jj_expentries.elements(); enum.hasMoreElements();) {
        int[] oldentry = (int[])(enum.nextElement());
        if (oldentry.length == jj_expentry.length) {
          exists = true;
          for (int i = 0; i < jj_expentry.length; i++) {
            if (oldentry[i] != jj_expentry[i]) {
              exists = false;
              break;
            }
          }
          if (exists) break;
        }
      }
      if (!exists) jj_expentries.addElement(jj_expentry);
      if (pos != 0) jj_lasttokens[(jj_endpos = pos) - 1] = kind;
    }
  }

  static final public ParseException generateParseException() {
    jj_expentries.removeAllElements();
    boolean[] la1tokens = new boolean[42];
    for (int i = 0; i < 42; i++) {
      la1tokens[i] = false;
    }
    if (jj_kind >= 0) {
      la1tokens[jj_kind] = true;
      jj_kind = -1;
    }
    for (int i = 0; i < 31; i++) {
      if (jj_la1[i] == jj_gen) {
        for (int j = 0; j < 32; j++) {
          if ((jj_la1_0[i] & (1<<j)) != 0) {
            la1tokens[j] = true;
          }
          if ((jj_la1_1[i] & (1<<j)) != 0) {
            la1tokens[32+j] = true;
          }
        }
      }
    }
    for (int i = 0; i < 42; i++) {
      if (la1tokens[i]) {
        jj_expentry = new int[1];
        jj_expentry[0] = i;
        jj_expentries.addElement(jj_expentry);
      }
    }
    jj_endpos = 0;
    jj_rescan_token();
    jj_add_error_token(0, 0);
    int[][] exptokseq = new int[jj_expentries.size()][];
    for (int i = 0; i < jj_expentries.size(); i++) {
      exptokseq[i] = (int[])jj_expentries.elementAt(i);
    }
    return new ParseException(token, exptokseq, tokenImage);
  }

  static final public void enable_tracing() {
  }

  static final public void disable_tracing() {
  }

  static final private void jj_rescan_token() {
    jj_rescan = true;
    for (int i = 0; i < 5; i++) {
      JJDSigParserCalls p = jj_2_rtns[i];
      do {
        if (p.gen > jj_gen) {
          jj_la = p.arg; jj_lastpos = jj_scanpos = p.first;
          switch (i) {
            case 0: jj_3_1(); break;
            case 1: jj_3_2(); break;
            case 2: jj_3_3(); break;
            case 3: jj_3_4(); break;
            case 4: jj_3_5(); break;
          }
        }
        p = p.next;
      } while (p != null);
    }
    jj_rescan = false;
  }

  static final private void jj_save(int index, int xla) {
    JJDSigParserCalls p = jj_2_rtns[index];
    while (p.gen > jj_gen) {
      if (p.next == null) { p = p.next = new JJDSigParserCalls(); break; }
      p = p.next;
    }
    p.gen = jj_gen + xla - jj_la; p.first = token; p.arg = xla;
  }

}

final class JJDSigParserCalls {
  int gen;
  Token first;
  int arg;
  JJDSigParserCalls next;
}
