Rebuild an AST node from a language-neutral list
Arguments
- j
A list as produced by
ast_to_json(), or the result ofjsonlite::fromJSON()withsimplifyVector = FALSE.
Examples
n <- ast_expression("*", ast_symbol("a"), ast_symbol("b"))
identical(ast_from_json(ast_to_json(n)), n)
#> [1] TRUE
