Beispiel #1
0
 /// <summary>
 /// Fires an error occurred event (usually originated by another tokenizer).
 /// </summary>
 /// <param name="sender">The original sender.</param>
 /// <param name="eventArgs">The arguments of the event.</param>
 protected void RaiseErrorOccurred(Object sender, ParseErrorEventArgs eventArgs)
 {
     if (ErrorOccurred != null)
     {
         ErrorOccurred(sender, eventArgs);
     }
 }
Beispiel #2
0
 /// <summary>
 /// Fires an error occurred event.
 /// </summary>
 /// <param name="code">The associated error code.</param>
 protected void RaiseErrorOccurred(ErrorCode code)
 {
     if (ErrorOccurred != null)
     {
         var pck = new ParseErrorEventArgs((int)code, Errors.GetError(code));
         pck.Line = _src.Line;
         pck.Column = _src.Column;
         ErrorOccurred(this, pck);
     }
 }
Beispiel #3
0
 /// <summary>
 /// Fires an error occurred event.
 /// </summary>
 /// <param name="code">The associated error code.</param>
 protected void RaiseErrorOccurred(ErrorCode code)
 {
     if (ErrorOccurred != null)
     {
         var pck = new ParseErrorEventArgs((int)code, Errors.GetError(code));
         pck.Line   = src.Line;
         pck.Column = src.Column;
         ErrorOccurred(this, pck);
     }
 }
Beispiel #4
0
 /// <summary>
 /// Reports an error by writing to the debug console.
 /// </summary>
 /// <param name="e">The parse error event arguments.</param>
 public virtual void ReportError(ParseErrorEventArgs e)
 {
     Debug.WriteLine(e.ToString());
 }
 /// <summary>
 /// Called once a helper class finds a parse error.
 /// </summary>
 /// <param name="sender">The helper that encountered the error.</param>
 /// <param name="e">The arguments passed from the helper instance.</param>
 void ParseErrorOccurred(object sender, ParseErrorEventArgs e)
 {
     Debug.WriteLine(e);
 }
Beispiel #6
0
 /// <summary>
 /// Fires an error occurred event (usually originated by another tokenizer).
 /// </summary>
 /// <param name="sender">The original sender.</param>
 /// <param name="eventArgs">The arguments of the event.</param>
 protected void RaiseErrorOccurred(Object sender, ParseErrorEventArgs eventArgs)
 {
     if (ErrorOccurred != null)
         ErrorOccurred(sender, eventArgs);
 }
Beispiel #7
0
 public void ReportError(ParseErrorEventArgs e)
 {
     _original.ReportError(e);
 }
 /// <summary>
 /// Called once a helper class finds a parse error.
 /// </summary>
 /// <param name="sender">The helper that encountered the error.</param>
 /// <param name="e">The arguments passed from the helper instance.</param>
 void ParseErrorOccurred(object sender, ParseErrorEventArgs e)
 {
     Debug.WriteLine(e);
 }