public void RunStep(IStep step) { var token = new Token { Part = step, Description = "Step: {0}/{1}".ToFormat(path, step.GrammarKey) }; _testProgression.AddToken(token); withName(step.GrammarKey, () => step.EachLeaf(readLeaf)); }
public void RunStep(IStep step) { if (step.Description.IsNotEmpty()) { _nodes.Peek().AddComment(step.Description); } // Here, this should be changed _nodes.Peek().AddChild(step.GrammarKey).WithProperties(step.Values).With(elem => { step.EachLeaf((key, leaf) => { _nodes.Push(elem.AddChild(key)); leaf.AcceptVisitor(this); _nodes.Pop(); }); }); }