Use is_language()
to determine if an object has a class of
"tree_sitter_language"
.
Examples
language <- treesitter.r::language()
is_language(language)
#> [1] TRUE
Use is_language()
to determine if an object has a class of
"tree_sitter_language"
.
language <- treesitter.r::language()
is_language(language)
#> [1] TRUE