static HRONParseError GetParseError(Scanner.Error parseError)
 {
     switch (parseError)
     {
         case Scanner.Error.WrongTag:
             return HRONParseError.WrongTag;
         case Scanner.Error.NonEmptyTag:
             return HRONParseError.NonEmptyTag;
         case Scanner.Error.General:
         default:
             return HRONParseError.General;;
     }
 }
 public void Error(int lineNo, SubString line, Scanner.Error parseError)
 {
     Errors.Add(new HRONDynamicParseError(lineNo, line.Value, GetParseError (parseError)));
 }
示例#3
0
 public void Error(int lineNo, SubString line, Scanner.Error parseError)
 {
     m_writer.WriteLine("Error:{0},{1},{2}", parseError, lineNo, line);
 }
示例#4
0
 static void ReadDocument(IScannerVisitor v, SubString[] lines)
 {
     var scanner = new Scanner(v);
     v.Document_Begin();
     for (int index = 0; index < lines.Length; index++)
     {
         var line = lines[index];
         scanner.AcceptLine(line);
     }
     scanner.AcceptEndOfStream();
     v.Document_End();
 }
示例#5
0
 public void Error(int lineNo, SubString line, Scanner.Error parseError)
 {
     Log.Info("Error:{0},{1},{2}", parseError, lineNo, line);
 }
示例#6
0
 public void Error(int lineNo, SubString line, Scanner.Error parseError)
 {
 }