Apply a list of functions to each level in a nested parse table. pre_visit() applies funs before it proceeds to the children, (that is, starts from the outermost level of nesting progressing to the innermost level), post_visit() proceeds to its children before applying the functions (meaning it first applies the functions to the innermost level of nesting first and then going outwards).

pre_visit(pd_nested, funs)

post_visit(pd_nested, funs)

Arguments

pd_nested

A nested parse table.

funs

A list of transformer functions.

See also

Other visitors: visit_one