Esempio n. 1
0
        public GrammarInfo(Type grammarType)
        {
            InitializeMembers();

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

            LoadInheritedGrammar();

            CollectProductions();
            CollectKeywords();
            CollectInheritedRules();
        }
Esempio n. 2
0
        public GrammarInfo(Type grammarType)
        {
            InitializeMembers();

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

            LoadInheritedGrammar();

            CollectProductions();
            CollectKeywords();
            CollectInheritedRules();
        }
Esempio n. 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;
        }
Esempio n. 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;
        }