Exemple #1
0
 public CharScanner(InputBuffer cb) : this()
 {
     inputState = new LexerSharedInputState(cb);
     cached_LA2 = inputState.input.LA(2);
     cached_LA1 = inputState.input.LA(1);
 }
 public virtual void resetState(InputBuffer ib)
 {
     text.Length = 0;
     traceDepth = 0;
     inputState.resetInput(ib);
     refresh();
 }
 public CharScanner(InputBuffer cb)
     : this()
 {
     inputState = new LexerSharedInputState(cb);
     cached_LA2 = inputState.input.LA(2);
     cached_LA1 = inputState.input.LA(1);
 }
Exemple #4
0
 public virtual void resetInput(TextReader tr)
 {
     reset();
     input = new CharBuffer(tr);
 }
 public ExpressionLexer(InputBuffer ib)
     : this(new LexerSharedInputState(ib))
 {
 }
Exemple #6
0
 public virtual void resetInput(InputBuffer ib)
 {
     reset();
     input = ib;
 }
Exemple #7
0
 public virtual void resetInput(Stream s)
 {
     reset();
     input = new ByteBuffer(s);
 }
Exemple #8
0
 public LexerSharedInputState(InputBuffer inbuf)
 {
     initialize();
     input = inbuf;
 }
 public virtual void resetInput(TextReader tr)
 {
     reset();
     input = new CharBuffer(tr);
 }
 public virtual void resetInput(Stream s)
 {
     reset();
     input = new ByteBuffer(s);
 }
 public virtual void resetInput(InputBuffer ib)
 {
     reset();
     input = ib;
 }
 public LexerSharedInputState(InputBuffer inbuf)
 {
     initialize();
     input = inbuf;
 }