コード例 #1
0
 public CLIPSParser(Rete.Rete eng, Stream stream)
 {
     mcc_input_stream = new SimpleCharStream(stream, 1, 1);
     token_source = new CLIPSParserTokenManager(mcc_input_stream);
     token = new Token();
     mcc_ntk = -1;
     mcc_gen = 0;
     for (int i = 0; i < 63; i++) mcc_la1[i] = -1;
     for (int i = 0; i < mcc_2_rtns.Length; i++) mcc_2_rtns[i] = new MccCalls();
     engine = eng;
 }
コード例 #2
0
 public void ReInit(SimpleCharStream stream, int lexState)
 {
     ReInit(stream);
     SwitchTo(lexState);
 }
コード例 #3
0
 public CLIPSParserTokenManager(SimpleCharStream stream, int lexState)
     : this(stream)
 {
     SwitchTo(lexState);
 }
コード例 #4
0
 public void ReInit(SimpleCharStream stream)
 {
     mccmatchedPos = mccnewStateCnt = 0;
     curLexState = defaultLexState;
     input_stream = stream;
     ReInitRounds();
 }
コード例 #5
0
 public CLIPSParserTokenManager(SimpleCharStream stream)
 {
     if (SimpleCharStream.staticFlag)
         throw new Exception("ERROR: Cannot use a static CharStream class with a non-static lexical analyzer.");
     input_stream = stream;
 }