private void NotifySyntaxError(SyntaxErrorInfo info) { var handler = OnSyntaxError; if (handler != null) { handler.Invoke(this, new SyntaxErrorEventArgs(info)); } }
public override void SyntaxError(IRecognizer recognizer, IToken offendingSymbol, int line, int charPositionInLine, string msg, RecognitionException e) { var info = new SyntaxErrorInfo(msg, e, offendingSymbol, line, charPositionInLine); NotifySyntaxError(info); }
public SyntaxErrorEventArgs(SyntaxErrorInfo info) { _info = info; }
public SyntaxErrorException(SyntaxErrorInfo info) : this(info.Message, info.Exception, info.OffendingSymbol, info.LineNumber, info.Position) { }