is_parser {treesitter} | R Documentation |
Is x
a parser?
Description
Checks if x
is a tree_sitter_parser
or not.
Usage
is_parser(x)
Arguments
x |
An object. |
Value
TRUE
if x
is a tree_sitter_parser
, otherwise FALSE
.
Examples
language <- treesitter.r::language()
parser <- parser(language)
is_parser(parser)
is_parser(1)
[Package treesitter version 0.1.0 Index]