Skip to contents

Constructs an abstract syntax tree (AST) node representing a function.

Usage

ast_func(name, value, index = NULL, ...)

Arguments

name

A character string representing the function name.

value

An AST node representing the function body or expression.

index

An AST node (typically dims or when) defining the index set.

...

Additional fields stored on the node (passed to new_ast()).

Value

An ast object of class function.