public void AddContext(string s, int begin, int end, Rule r, string msg) { context = new ParseExceptionContext(s, begin, end, r, msg); }