Beispiel #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));
     }
 }
Beispiel #2
0
 public void AdvanceTransition(TokeniserState state)
 {
     _reader.Advance();
     this._state = state;
 }
Beispiel #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));
     }
 }
Beispiel #4
0
 public void Transition(TokeniserState state)
 {
     this._state = state;
 }