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)); } }
public void AdvanceTransition(TokeniserState state) { _reader.Advance(); this._state = state; }
public void Error(TokeniserState state) { if (_errors.CanAddError) { _errors.Add(new ParseError(_reader.Position, "Unexpected character '{0}' in input state [{1}]", _reader.Current(), state)); } }
public void Transition(TokeniserState state) { this._state = state; }