public TreeAndDocument Decompose(TreeVisitor <Document, TreeAndDocument> visitor, Tree tree) { return (new TreeAndDocument( tree, tree.Accept(visitor, new ParamorphismDecomposer(tree)) )); }
public static Document Run(Tree tree) { var visitor = new DocumentFromTree1(); return(tree.Accept(visitor, visitor.Decomposer)); }
public Document Decompose(TreeVisitor <Document, Document> visitor, Tree tree) { return(tree.Accept(visitor, this)); }