예제 #1
0
파일: Tokeniser.cs 프로젝트: wushian/dcsoup
 internal void EofError(TokeniserState state)
 {
     if (errors.CanAddError)
     {
         errors.Add(new ParseError(reader.Pos(), "Unexpectedly reached end of file (EOF) in input state [{0}]", state.Name()));
     }
 }
예제 #2
0
파일: Tokeniser.cs 프로젝트: wushian/dcsoup
 internal void Error(TokeniserState state)
 {
     if (errors.CanAddError)
     {
         errors.Add(new ParseError(reader.Pos(), "Unexpected character '{0}' in input state [{1}]", reader.Current(), state.Name()));
     }
 }