public static GATNode _simpleExpression(this LL1Processor ll1) { var node = new GATNode(); node.generator = SimpleExpression; var additiveExpression1 = ll1._additiveExpression(); node.AddChild(additiveExpression1); var next = WordContainer.GetWordType(); while (next == WordType.RELOP) { var relop = WordContainer.Advance(WordType.RELOP); node.AddChild(relop); var additiveExpression2 = ll1._additiveExpression(); node.AddChild(additiveExpression2); next = WordContainer.GetWordType(); } return(node); }