is_language {treesitter} | R Documentation |
Is x
a language?
Description
Use is_language()
to determine if an object has a class of
"tree_sitter_language"
.
Usage
is_language(x)
Arguments
x |
An object. |
Value
-
TRUE
ifx
is a"tree_sitter_language"
. -
FALSE
otherwise.
Examples
language <- treesitter.r::language()
is_language(language)
[Package treesitter version 0.1.0 Index]