node_raw_s_expression | R Documentation |
node_raw_s_expression()
returns the "raw" s-expression as seen by
tree-sitter. Most of the time, node_show_s_expression()
provides a better
view of the tree, but occasionally it can be useful to see exactly what the
underlying C library is using.
node_raw_s_expression(x)
x |
A node. |
A single string containing the raw s-expression.
language <- treesitter.r::language()
parser <- parser(language)
text <- "1 + foo"
tree <- parser_parse(parser, text)
node <- tree_root_node(tree)
node_raw_s_expression(node)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.