Beispiel #1
0
 /// <summary>Reinitialize.</summary>
 public virtual void ReInit(QueryParserTokenManager tm)
 {
     TokenSource = tm;
     Token       = new Token();
     jj_ntk      = -1;
     jj_gen      = 0;
     for (int i = 0; i < 10; i++)
     {
         jj_la1[i] = -1;
     }
     for (int i = 0; i < jj_2_rtns.Length; i++)
     {
         jj_2_rtns[i] = new JJCalls();
     }
 }
Beispiel #2
0
 /// <summary>Constructor with user supplied <see cref="ICharStream"/>.</summary>
 public QueryParser(ICharStream stream)
 {
     TokenSource = new QueryParserTokenManager(stream);
     Token       = new Token();
     jj_ntk      = -1;
     jj_gen      = 0;
     for (int i = 0; i < 10; i++)
     {
         jj_la1[i] = -1;
     }
     for (int i = 0; i < jj_2_rtns.Length; i++)
     {
         jj_2_rtns[i] = new JJCalls();
     }
 }