if (FALSE) { # rlang::is_installed("treesitter.r")
language <- treesitter.r::language()
text <- "map(xs, function(x) 1 + 1)"
# Note that this directly returns the root node, not the tree
text_parse(text, language)
}
Run the code above in your browser using DataLab