Learn R Programming

assemblerr (version 0.1.1)

transform_ast: Modify AST

Description

This recursive function is the work-horse for all expression transformations. It takes a language node and a transformer function, and applies the transformer recursivly to the node and all its child nodes.

Usage

transform_ast(node, transformer, ...)

Arguments

node

A language node

transformer

A transformer function

...

Additional arguments to the transformer function

Value

The transformed language node