transform_ast: Modify AST

View source: R/ast.R

transform_astR Documentation

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


sebastianueckert/assemblerr documentation built on Sept. 30, 2022, 9:12 a.m.