Beispiel #1
0
 public TreeAndDocument Decompose(TreeVisitor <Document, TreeAndDocument> visitor, Tree tree)
 {
     return
         (new TreeAndDocument(
              tree,
              tree.Accept(visitor, new ParamorphismDecomposer(tree))
              ));
 }
Beispiel #2
0
        public static Document Run(Tree tree)
        {
            var visitor = new DocumentFromTree1();

            return(tree.Accept(visitor, visitor.Decomposer));
        }
Beispiel #3
0
 public Document Decompose(TreeVisitor <Document, Document> visitor, Tree tree)
 {
     return(tree.Accept(visitor, this));
 }