示例#1
0
        public GrammarInfo(Type grammarType)
        {
            InitializeMembers();

            this.grammarType = grammarType;
            this.attributes  = (GrammarAttribute)grammarType.GetCustomAttributes(typeof(GrammarAttribute), false)[0];

            LoadInheritedGrammar();

            CollectProductions();
            CollectKeywords();
            CollectInheritedRules();
        }
示例#2
0
        public GrammarInfo(Type grammarType)
        {
            InitializeMembers();

            this.grammarType = grammarType;
            this.attributes = (GrammarAttribute)grammarType.GetCustomAttributes(typeof(GrammarAttribute), false)[0];

            LoadInheritedGrammar();

            CollectProductions();
            CollectKeywords();
            CollectInheritedRules();
        }
示例#3
0
        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;
        }
示例#4
0
        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;
        }