/// <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(); } }
/// <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(); } }
/// <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(); } }
/// <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(); }
/// <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(); }
/// <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(); }