is_language: Is 'x' a language?

View source: R/language.R

is_languageR 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

⁠[object]⁠

An object.

Value

  • TRUE if x is a "tree_sitter_language".

  • FALSE otherwise.

Examples


language <- treesitter.r::language()
is_language(language)


treesitter documentation built on June 24, 2024, 5:07 p.m.