Exemple #1
0
 public final StmtList StmtList() throws ParseException {
   NodeListOptional n0 = new NodeListOptional();
   NodeSequence n1;
   NodeOptional n2;
   Label n3;
   Stmt n4;
   label_2:
   while (true) {
     switch ((jj_ntk == -1) ? jj_ntk() : jj_ntk) {
       case NOOP:
       case MOVE:
       case ERROR:
       case PRINT:
       case JUMP:
       case CJUMP:
       case HSTORE:
       case HLOAD:
       case IDENTIFIER:;
         break;
       default:
         jj_la1[1] = jj_gen;
         break label_2;
     }
     n2 = new NodeOptional();
     n1 = new NodeSequence(2);
     switch ((jj_ntk == -1) ? jj_ntk() : jj_ntk) {
       case IDENTIFIER:
         n3 = Label();
         n2.addNode(n3);
         break;
       default:
         jj_la1[2] = jj_gen;
         ;
     }
     n1.addNode(n2);
     n4 = Stmt();
     n1.addNode(n4);
     n0.addNode(n1);
   }
   n0.nodes.trimToSize();
   {
     if (true) return new StmtList(n0);
   }
   throw new Error("Missing return statement in function");
 }
 public PGValue visit(NodeSequence n, Node argu) {
   PGValue _ret = null;
   int _count = 0;
   for (Enumeration<Node> e = n.elements(); e.hasMoreElements(); ) {
     PGValue p = (PGValue) e.nextElement().accept(this, argu);
     _count++;
   }
   return _ret;
 }