예제 #1
0
 public final Header Header() throws ParseException {
   Token t;
   ASTStringNode name;
   ASTStringNode value;
   ASTStringNode value1;
   ArrayList<ASTStringNode> value1List = new ArrayList<ASTStringNode>();
   Token firstToken = token;
   t = jj_consume_token(NAME);
   name = new ASTStringNode(t.image, new WToken(t));
   jj_consume_token(COLON);
   t = jj_consume_token(VALUE);
   value = new ASTStringNode(t.image, new WToken(t));
   label_2:
   while (true) {
     switch (jj_nt.kind) {
       case VALUE:;
         break;
       default:
         jj_la1[2] = jj_gen;
         break label_2;
     }
     t = jj_consume_token(VALUE);
     value1 = new ASTStringNode(t.image, new WToken(t));
     value1List.add(value1);
   }
   {
     if (true) return new Header(name, value, value1List, firstToken.next, token);
   }
   throw new Error("Missing return statement in function");
 }
예제 #2
0
 public final Export Export() throws ParseException {
   Token t;
   ASTStringNode packagedcl;
   ArrayList<ASTStringNode> list0 = new ArrayList<ASTStringNode>();
   ASTStringNode packagedcl1;
   ArrayList<ASTStringNode> packagedcl1List = new ArrayList<ASTStringNode>();
   ASTStringNode packageend;
   Token firstToken = token;
   jj_consume_token(EXPORTPACKAGE);
   t = jj_consume_token(PACKAGEDCL);
   packagedcl = new ASTStringNode(t.image, new WToken(t));
   list0.add(packagedcl);
   label_3:
   while (true) {
     switch (jj_nt.kind) {
       case 12:;
         break;
       default:
         jj_la1[3] = jj_gen;
         break label_3;
     }
     jj_consume_token(12);
     t = jj_consume_token(PACKAGEDCL);
     packagedcl1 = new ASTStringNode(t.image, new WToken(t));
     list0.add(packagedcl1);
   }
   t = jj_consume_token(PACKAGEEND);
   packageend = new ASTStringNode(t.image, new WToken(t));
   {
     if (true) return new Export(list0, packageend, firstToken.next, token);
   }
   throw new Error("Missing return statement in function");
 }
예제 #3
0
 public final File File() throws ParseException {
   Line line;
   ArrayList<Line> lineList = new ArrayList<Line>();
   Token t;
   ASTStringNode eof;
   Token firstToken = token;
   label_1:
   while (true) {
     line = Line();
     lineList.add(line);
     switch (jj_nt.kind) {
       case EXPORTPACKAGE:
       case NAME:;
         break;
       default:
         jj_la1[0] = jj_gen;
         break label_1;
     }
   }
   t = jj_consume_token(0);
   eof = new ASTStringNode(t.image, new WToken(t));
   {
     if (true) return new File(lineList, eof, firstToken.next, token);
   }
   throw new Error("Missing return statement in function");
 }
예제 #4
0
파일: DTDParser.java 프로젝트: ppires/CIDE
 public final Enumeration Enumeration() throws ParseException {
   Token t;
   ASTStringNode name;
   ASTStringNode name1;
   ArrayList<ASTStringNode> name1List = new ArrayList<ASTStringNode>();
   Token firstToken = token;
   jj_consume_token(OB);
   t = jj_consume_token(NAME);
   name = new ASTStringNode(t.toString(), new WToken(token));
   label_6:
   while (true) {
     switch ((jj_ntk == -1) ? jj_ntk() : jj_ntk) {
       case 32:;
         break;
       default:
         jj_la1[16] = jj_gen;
         break label_6;
     }
     jj_consume_token(32);
     t = jj_consume_token(NAME);
     name1 = new ASTStringNode(t.toString(), new WToken(token));
     name1List.add(name1);
   }
   jj_consume_token(CB);
   {
     if (true) return new Enumeration(name, name1List, firstToken.next, token);
   }
   throw new Error("Missing return statement in function");
 }
예제 #5
0
파일: DTDParser.java 프로젝트: ppires/CIDE
 public final AttListDecl AttListDecl() throws ParseException {
   Token t;
   ASTStringNode name;
   AttribDef attribDef;
   ArrayList<AttribDef> attribDefList = new ArrayList<AttribDef>();
   Token firstToken = token;
   jj_consume_token(34);
   t = jj_consume_token(NAME);
   name = new ASTStringNode(t.toString(), new WToken(token));
   label_4:
   while (true) {
     switch ((jj_ntk == -1) ? jj_ntk() : jj_ntk) {
       case NAME:;
         break;
       default:
         jj_la1[11] = jj_gen;
         break label_4;
     }
     attribDef = AttribDef();
     attribDefList.add(attribDef);
   }
   jj_consume_token(PCB);
   {
     if (true) return new AttListDecl(name, attribDefList, firstToken.next, token);
   }
   throw new Error("Missing return statement in function");
 }
예제 #6
0
파일: DTDParser.java 프로젝트: ppires/CIDE
 public final Seq Seq() throws ParseException {
   Cp cp;
   ArrayList<Cp> list0 = new ArrayList<Cp>();
   Cp cp1;
   ArrayList<Cp> cp1List = new ArrayList<Cp>();
   Token firstToken = token;
   jj_consume_token(OB);
   cp = Cp();
   list0.add(cp);
   label_3:
   while (true) {
     switch ((jj_ntk == -1) ? jj_ntk() : jj_ntk) {
       case 33:;
         break;
       default:
         jj_la1[6] = jj_gen;
         break label_3;
     }
     jj_consume_token(33);
     cp1 = Cp();
     list0.add(cp1);
   }
   jj_consume_token(CB);
   {
     if (true) return new Seq(list0, firstToken.next, token);
   }
   throw new Error("Missing return statement in function");
 }
예제 #7
0
파일: DTDParser.java 프로젝트: ppires/CIDE
 public final DTD DTD() throws ParseException {
   DTDEntry dTDEntry;
   ArrayList<DTDEntry> dTDEntryList = new ArrayList<DTDEntry>();
   Token t;
   ASTStringNode eof;
   Token firstToken = token;
   label_1:
   while (true) {
     switch ((jj_ntk == -1) ? jj_ntk() : jj_ntk) {
       case 31:
       case 34:;
         break;
       default:
         jj_la1[0] = jj_gen;
         break label_1;
     }
     dTDEntry = DTDEntry();
     dTDEntryList.add(dTDEntry);
   }
   t = jj_consume_token(0);
   eof = new ASTStringNode(t.toString(), new WToken(token));
   {
     if (true) return new DTD(dTDEntryList, eof, firstToken.next, token);
   }
   throw new Error("Missing return statement in function");
 }