Tokens.RdConvert CVIR Tokens IDs, Labels and Syntax
is_keyword(token)
token_to_id(token)
id_to_token(id, convert_punctuation = TRUE)Token Label
Internal Token Byte Value
For `id_to_token()`: Convert Token ID to user-level syntax (`TRUE`) or internal label (`FALSE`); Default: `TRUE`
a numeric vector of token IDs (`token_to_id()`), or a character vector of token labels or syntax (`id_to_token()`)
token_to_id("DERIVE")
#> DERIVE
#> 141
id_to_token(317)
#> [1] "%"