diff options
Diffstat (limited to 'gcc/rust/lex/rust-token.h')
-rw-r--r-- | gcc/rust/lex/rust-token.h | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/gcc/rust/lex/rust-token.h b/gcc/rust/lex/rust-token.h index 39c21cd..9dea83c 100644 --- a/gcc/rust/lex/rust-token.h +++ b/gcc/rust/lex/rust-token.h @@ -226,6 +226,12 @@ get_token_description (TokenId id); * x-macros */ const char * token_id_to_str (TokenId id); +/* checks if a token is a keyword */ +bool +token_id_is_keyword (TokenId id); +/* gets the string associated with a keyword */ +const char * +token_id_keyword_string (TokenId id); // Get type hint description as a string. const char * get_type_hint_string (PrimitiveCoreType type); |