language_symbol_name | R Documentation |
Get the name for a particular language symbol ID. Can be useful for exploring a grammar.
language_symbol_name(x, symbol)
x |
A tree-sitter language object. |
symbol |
The language symbols to look up names for. |
A character vector the same length as symbol
containing:
The name of the symbol, if known.
NA
, if the symbol was not known.
language_symbol_for_name()
language <- treesitter.r::language()
language_symbol_name(language, 1)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.