Function design_pattern_examples_rust::interpreter::interpreter_interpreter::_interpret_token
source · fn _interpret_token(token: usize) -> String
Expand description
Helper function to convert the token into its corresponding word or punctuation mark.
Parameters
-
token
The token to interpret.
Returns
Returns a string containing the corresponding word or punctuation. If the token is not recognized, the string returns “<UNKNOWN TOKEN #>”, where # is the token value.