language_symbol_name {treesitter} | R Documentation |
Language symbol names
Description
Get the name for a particular language symbol ID. Can be useful for exploring a grammar.
Usage
language_symbol_name(x, symbol)
Arguments
x |
A tree-sitter language object. |
symbol |
The language symbols to look up names for. |
Value
A character vector the same length as symbol
containing:
The name of the symbol, if known.
-
NA
, if the symbol was not known.
See Also
Examples
language <- treesitter.r::language()
language_symbol_name(language, 1)
[Package treesitter version 0.1.0 Index]