Description

Convert a string into a token type::

>>> string_to_token('String.Double')
Token.Literal.String.Double
>>> string_to_token('Token.Literal.Number')
Token.Literal.Number
>>> string_to_token('')
Token

Tokens that are already tokens are returned unchanged:

>>> string_to_token(String)
Token.Literal.String

string_to_tokentype is referenced in 0 repositories