public ParsingContext(Parser parser) {
this.Parser = parser;
Language = Parser.Language;
Culture = Language.Grammar.DefaultCulture;
//This might be a problem for multi-threading - if we have several contexts on parallel threads with different culture.
//Resources.Culture is static property (this is not Irony's fault, this is auto-generated file).
Resources.Culture = Culture;
//We assume that if Irony is compiled in Debug mode, then developer is debugging his grammar/language implementation
#if DEBUG
Options |= ParseOptions.GrammarDebugging;
#endif
SharedParsingEventArgs = new ParsingEventArgs(this);
}
#endregion