transform_ast: Modify AST

Description Usage Arguments Value

View source: R/ast.R

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

1
transform_ast(node, transformer, ...)

Arguments

node

A language node

transformer

A transformer function

...

Additional arguments to the transformer function

Value

The transformed language node


assemblerr documentation built on Jan. 13, 2022, 1:07 a.m.