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