Ejemplo n.º 1
0
        public static void GetFollowCollection(
            this RegulationList grammar,
            out FOLLOWCollection followCollection,
            Dictionary <TreeNodeType, bool> nullableDict = null,
            FIRSTCollection firstCollection = null)
        {
            if (nullableDict == null)
            {
                grammar.GetNullableDict(out nullableDict);
            }
            if (firstCollection == null)
            {
                grammar.GetFirstCollection(out firstCollection, nullableDict);
            }

            FIRSTCollection firstList4Node;

            grammar.GetFirstCollection4Node(out firstList4Node, nullableDict);
            FIRSTCollection firstList4Regulation;

            grammar.GetFirstCollection4Regulation(out firstList4Regulation, nullableDict, firstList4Node);
            grammar.DoGetFollowList(out followCollection, nullableDict, firstList4Node);
        }