public static GATNode _declarationList(this LL1Processor ll1) { var node = new GATNode(); node.generator = DeclarationList; var declaration = ll1._declaration(); node.AddChild(declaration); var next = WordContainer.GetWordType(); while (DeclarationProc.first.Contains(next)) { declaration = ll1._declaration(); node.AddChild(declaration); next = WordContainer.GetWordType(); } return(node); }