Example #1
0
 /// <summary>Reinitialize</summary>
 public void ReInit(TregexParserTokenManager tm)
 {
     token_source = tm;
     token        = new Token();
     jj_ntk       = -1;
     jj_gen       = 0;
     for (int i = 0; i < 28; i++)
     {
         jj_la1[i] = -1;
     }
     for (int i = 0; i < jj_2_rtns.Length; i++)
     {
         jj_2_rtns[i] = new JjCalls();
     }
 }
Example #2
0
 /// <summary>Constructor</summary>
 public TregexParser(TextReader stream)
 {
     jj_input_stream = new SimpleCharStream(stream, 1, 1);
     token_source    = new TregexParserTokenManager(jj_input_stream);
     token           = new Token();
     jj_ntk          = -1;
     jj_gen          = 0;
     for (int i = 0; i < 28; i++)
     {
         jj_la1[i] = -1;
     }
     for (int i = 0; i < jj_2_rtns.Length; i++)
     {
         jj_2_rtns[i] = new JjCalls();
     }
 }
Example #3
0
 /// <summary>
 /// Constructor with Stream and supplied encoding
 /// </summary>
 public TregexParser(Stream stream, string encoding)
 {
     try
     {
         jj_input_stream = new SimpleCharStream(stream, encoding, 1, 1);
     }
     catch (IOException e)
     {
         throw new SystemException("", e);
     }
     token_source = new TregexParserTokenManager(jj_input_stream);
     token        = new Token();
     jj_ntk       = -1;
     jj_gen       = 0;
     for (int i = 0; i < 28; i++)
     {
         jj_la1[i] = -1;
     }
     for (int i = 0; i < jj_2_rtns.Length; i++)
     {
         jj_2_rtns[i] = new JjCalls();
     }
 }
Example #4
0
 /// <summary>Reinitialize</summary>
 public void ReInit(TregexParserTokenManager tm)
 {
     token_source = tm;
     token = new Token();
     jj_ntk = -1;
     jj_gen = 0;
     for (int i = 0; i < 28; i++) jj_la1[i] = -1;
     for (int i = 0; i < jj_2_rtns.Length; i++) jj_2_rtns[i] = new JjCalls();
 }
Example #5
0
 /// <summary>Constructor</summary>
 public TregexParser(TextReader stream)
 {
     jj_input_stream = new SimpleCharStream(stream, 1, 1);
     token_source = new TregexParserTokenManager(jj_input_stream);
     token = new Token();
     jj_ntk = -1;
     jj_gen = 0;
     for (int i = 0; i < 28; i++) jj_la1[i] = -1;
     for (int i = 0; i < jj_2_rtns.Length; i++) jj_2_rtns[i] = new JjCalls();
 }
Example #6
0
 /// <summary>
 /// Constructor with Stream and supplied encoding
 /// </summary>
 public TregexParser(Stream stream, string encoding)
 {
     try
     {
         jj_input_stream = new SimpleCharStream(stream, encoding, 1, 1);
     }
     catch (IOException e)
     {
         throw new SystemException("", e);
     }
     token_source = new TregexParserTokenManager(jj_input_stream);
     token = new Token();
     jj_ntk = -1;
     jj_gen = 0;
     for (int i = 0; i < 28; i++) jj_la1[i] = -1;
     for (int i = 0; i < jj_2_rtns.Length; i++) jj_2_rtns[i] = new JjCalls();
 }