telepath / com.github.giedomak.telepath.datamodels.plans.utilities / MultiTreePrinter

MultiTreePrinter

object MultiTreePrinter (source)

Class to print a LogicalPlan.

Example: your input: a/(b+|c)|d

          UNION
           / \
          /   \
         /     \
        /       \
       /         \
      /           \
     /             \
    /               \

CONCATENATION d / \ / \ / \ / \ a UNION / \ / \ PLUS c / b

Functions

printMultiTree

fun printMultiTree(root: AbstractMultiTree<*>): Unit

Static method we should call with the root parseTree as parameter in order to print it.