/// <summary> /// Adds a given argument to the node. /// </summary> public void AddArgument(GrammarNode arg) { Children.Add(arg); }
/** * 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); }
/// <summary> /// Adds a choice to the children of this node. /// </summary> public void AddChoice(GrammarNode choice) { Children.Add(choice); }