Custom {languageserver} parser hook for {box} modules.
Examples
# \donttest{
action <- list(
assign = function(symbol, value) {
cat(paste("ASSIGN: ", symbol, value, "\n"))
},
update = function(packages) {
cat(paste("Packages: ", packages, "\n"))
},
parse = function(x) {
cat(paste("Parse: ", names(x), x, "\n"))
},
parse_args = function(x) {
cat(paste("Parse Args: ", names(x), x, "\n"))
}
)
box_use_parser(expr = expression(box::use(fs)), action = action)
#> Packages: fs
# }