private void RaiseError([NotNull] SchemaAutomatonError error) { if (ErrorEventHandler != null) { ErrorEventHandler(this, error); } }
private static void SchemaErrorEventHandler(object sender, SchemaAutomatonError e) { Console.WriteLine("Error at line {0}, position {1}: {2}", e.LineNumber, e.LinePosition, e); }