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))); }
public void Error(int lineNo, SubString line, Scanner.Error parseError) { m_writer.WriteLine("Error:{0},{1},{2}", parseError, lineNo, line); }
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(); }
public void Error(int lineNo, SubString line, Scanner.Error parseError) { Log.Info("Error:{0},{1},{2}", parseError, lineNo, line); }
public void Error(int lineNo, SubString line, Scanner.Error parseError) { }