예제 #1
0
 /// <summary>
 /// Adds a given argument to the node.
 /// </summary>
 public void AddArgument(GrammarNode arg)
 {
     Children.Add(arg);
 }
예제 #2
0
        /**
         * We do not have any example grammar to test with FOLLOW-SETs,
         * so the FOLLOW-SET is empty, we need to test with a grammar
         * that contains post-fix notations;
         *
         * this needs to be implemented properly with a new grammar.
         */
        public ArrayList GatherFollowSets(GrammarNode gn, GrammarNode parent)
        {
            ArrayList followSet = new ArrayList();

            return(followSet);
        }
예제 #3
0
 /// <summary>
 /// Adds a choice to the children of this node.
 /// </summary>
 public void AddChoice(GrammarNode choice)
 {
     Children.Add(choice);
 }