styler (version 1.1.0)

visit: Visit'em all

Description

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).

Usage

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