Esempio n. 1
0
 public void EofError(TokeniserState state)
 {
     if (_errors.CanAddError)
     {
         _errors.Add(new ParseError(_reader.Position, "Unexpectedly reached end of file (EOF) in input state [{0}]", state));
     }
 }
Esempio n. 2
0
 public void AdvanceTransition(TokeniserState state)
 {
     _reader.Advance();
     this._state = state;
 }
Esempio n. 3
0
 public void Error(TokeniserState state)
 {
     if (_errors.CanAddError)
     {
         _errors.Add(new ParseError(_reader.Position, "Unexpected character '{0}' in input state [{1}]", _reader.Current(), state));
     }
 }
Esempio n. 4
0
 public void Transition(TokeniserState state)
 {
     this._state = state;
 }