/// <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> /// Reinitialise parser /// </summary> public void ReInit(SimpleCharStream stream, int lexState) { ReInit(stream); SwitchTo(lexState); }
/// <summary> /// Reinitialise parser /// </summary> public void ReInit(SimpleCharStream stream) { jjmatchedPos = jjnewStateCnt = 0; curLexState = DefaultLexState; InputStream = stream; ReInitRounds(); }
/// <summary> /// Constructor /// </summary> public TregexParserTokenManager(SimpleCharStream stream, int lexState) { ReInit(stream); SwitchTo(lexState); }
/// <summary> /// Constructor /// </summary> public TregexParserTokenManager(SimpleCharStream stream) { if (SimpleCharStream.staticFlag) { throw new Exception("ERROR: Cannot use a static CharStream class with a non-static lexical analyzer."); } InputStream = stream; }
/// <summary> /// Reinitialise parser /// </summary> public void ReInit(SimpleCharStream stream, int lexState) { ReInit(stream); SwitchTo(lexState); }
/// <summary> /// Constructor /// </summary> public TregexParserTokenManager(SimpleCharStream stream, int lexState) { ReInit(stream); SwitchTo(lexState); }
/// <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(); }