private void OnSyntaxError(ParserContext context) { if (SyntaxError != null) SyntaxError(this, context); }
public SyntaxErrorException(ParserContext context) : base(string.Format("Syntax error occured while parsing token stream. Token environment: {0}", context.CurrentToken.GetEnvironment())) { Context = context; }
private void DefaultErrorRecoveryRoutine(IParser parser, ParserContext context) { throw new SyntaxErrorException(context); }