Side effect only. Higher order scope transform. Traverses current AST node and all children and prints each node's ID, result and reader state (if available). Also see print.
remarks
The optional fn function is used to print each AST node (default: console.log).
Syntax sugar for
xform(parser, xfPrint)
.print(seq([lit("["), oneOrMore(ALPHA), lit("]")]))(defContext("[abc]")) // seq: null // lit: "[" // repeat1: null // lit: "a" // lit: "b" // lit: "c" // lit: "]"