private ILrParserTable BuildCanonicalLRTable(ILrDfa dfa)
        {
            ILrParserTable result = new CanonicalLrDfaTable(dfa, this.data);
            if (result.RequiresGlr || !FillAmbiguousTokenActions(dfa.States, isGlr:false))
            {
                result = null;
            }

            return result;
        }
예제 #2
0
        private ILrParserTable BuildCanonicalLRTable(ILrDfa dfa)
        {
            ILrParserTable result = new CanonicalLrDfaTable(dfa, this.data);

            if (result.RequiresGlr || !FillAmbiguousTokenActions(dfa.States, isGlr: false))
            {
                result = null;
            }

            return(result);
        }