public ParserContext(string womElement, ParserEngine engine, bool ignoreCase) { _ignoreCase = false; _womElement = womElement; _regExpStr = new StringBuilder(); _regExp = null; _engine = engine; _grammar = new GrammarDocument(_engine.GetMainPath); _ruleList = new ParserRuleList(); _parentRule = null; _grammar.ReadRules(this); }
public ParserContext(string womElement, ParserEngine engine, ParserRule rule, string filename) { _womElement = womElement; _ignoreCase = rule.ParentContext.IgnoreCase; _regExpStr = new StringBuilder(); _regExp = null; _engine = engine; _grammar = new GrammarDocument(filename); _ruleList = new ParserRuleList(); _parentRule = rule; AddParentRule(rule); _grammar.ReadRules(this); }