Description Usage Arguments Details Value Examples
A recursive function for converting a language object to treeharp.
1 | lang_2_tree(lang_obj, node_id, ni_env)
|
lang_obj |
A language object. |
node_id |
The calling node to this language object. This should only
be greater than 0 if the |
ni_env |
An environment to store the adjacency list and node information. |
This function is used by TreeHarp constructors. It should not have to be called by a user. It works by bulding up an adjacency list and node node information data frame within the supplied environment.
Nothing
1 2 3 4 | e1 <- new.env()
lang_2_tree(quote(X <- 1), 0, e1)
e1$adj_list
e1$node_info
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.