public RuntimeGrammar(Grammar grammar)
 {
     this.grammar = grammar;
     IRuntimeNullableFirstTables tables = new NullableFirstTables(grammar);
     this.isNullable  = tables.TokenToNullable;
     this.MaxRuleSize = tables.MaxRuleSize;
     this.symbolCount = grammar.Symbols.Count;
 }
Example #2
0
        public RuntimeGrammar(Grammar grammar)
        {
            this.grammar = grammar;
            IRuntimeNullableFirstTables tables = new NullableFirstTables(grammar);

            this.isNullable  = tables.TokenToNullable;
            this.MaxRuleSize = tables.MaxRuleSize;
            this.symbolCount = grammar.Symbols.Count;
        }