This function returns the abstract syntax tree of the exrpession
Arguments
- expr
Language. Any quoted expression.
Examples
CLOSED_FORM$ast(quote(a + b))
#> [[1]]
#> `+`
#>
#> [[2]]
#> a
#>
#> [[3]]
#> b
#>
CLOSED_FORM$ast(quote(exp(a) + b^2))
#> [[1]]
#> `+`
#>
#> [[2]]
#> [[2]][[1]]
#> exp
#>
#> [[2]][[2]]
#> a
#>
#>
#> [[3]]
#> [[3]][[1]]
#> `^`
#>
#> [[3]][[2]]
#> b
#>
#> [[3]][[3]]
#> [1] 2
#>
#>