Skip to contents
  • parse_str() parses AST from an R string

  • parse_file() parses AST from a file

  • unparse_str() unparses AST to an R string

  • unparse_file() unparses AST to a file

Usage

parse_str(str)

parse_file(file)

unparse_str(ast, node = ast_root_get(ast))

unparse_file(ast, node = ast_root_get(ast), file)

Arguments

str

A scalar string to be parsed

file

File to be parsed

ast

AST object

node

Node to be unparsed; defaults to AST root node