public GrammarInfo(Type grammarType) { InitializeMembers(); this.grammarType = grammarType; this.attributes = (GrammarAttribute)grammarType.GetCustomAttributes(typeof(GrammarAttribute), false)[0]; LoadInheritedGrammar(); CollectProductions(); CollectKeywords(); CollectInheritedRules(); }
private void InitializeMembers() { this.grammarType = null; this.attributes = null; this.allProductions = null; this.symbols = null; this.terminals = null; this.whitespaces = null; this.comments = null; this.rules = null; this.ruleDependencies = null; this.keywords = null; this.inheritedGrammar = null; this.inheritedRules = null; }