Returns the token type that corresponds to a given string.
This function is used by the lexer to classify identifiers and keywords.
If the string is a reserved keyword, it returns the appropriate token type.
Otherwise, it returns Token.Id to indicate a user-defined identifier.
Returns the token type that corresponds to a given string.
This function is used by the lexer to classify identifiers and keywords. If the string is a reserved keyword, it returns the appropriate token type. Otherwise, it returns Token.Id to indicate a user-defined identifier.