Skip to contents
  • to_sexp() turns the AST to R's AST representation.

  • to_df() turns the AST to a data frame.

  • to_list() turns the AST to an R list.

  • to_dot() turns the AST to Graphviz's dot format.

Usage

to_sexp(ast, node = ast_root_get(ast))

to_df(ast, node = ast_root_get(ast))

to_list(ast, node = ast_root_get(ast))

to_dot(ast, node = ast_root_get(ast))

Arguments

ast

AST object

node

Node to be exported; defaults to AST root node