Get the name for a particular language symbol ID. Can be useful for exploring a grammar.
Value
A character vector the same length as symbol
containing:
The name of the symbol, if known.
NA
, if the symbol was not known.
Examples
language <- treesitter.r::language()
language_symbol_name(language, 1)
#> [1] "identifier"