예제 #1
0
 /** Reinitialise. */
 public void ReInit(astParserTokenManager tm)
 {
     token_source = tm;
     token = new AstToken();
     jj_ntk = AstRegExpId.UNDEFINED;
     jj_gen = 0;
     for (int i = 0; i < 14; i++)
         jj_la1[i] = -1;
 }
예제 #2
0
 /** Constructor with generated Token Manager. */
 public astParser(astParserTokenManager tm)
 {
     if (jj_initialized_once)
     {
         System.Out.println("ERROR: Second call to constructor of static parser. ");
         System.Out.println("       You must 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 AstToken();
     jj_ntk = AstRegExpId.UNDEFINED;
     jj_gen = 0;
     for (int i = 0; i < 14; i++)
         jj_la1[i] = -1;
 }