![]() |
Qucs-S S-parameter Viewer & RF Synthesis Tools
|
Classes | |
| class | _TokenType |
Functions | |
| is_token_subtype (ttype, other) | |
| string_to_tokentype (s) | |
Variables | |
| Token = _TokenType() | |
| Text = Token.Text | |
| Whitespace = Text.Whitespace | |
| Escape = Token.Escape | |
| Error = Token.Error | |
| Other = Token.Other | |
| Keyword = Token.Keyword | |
| Name = Token.Name | |
| Literal = Token.Literal | |
| String = Literal.String | |
| Number = Literal.Number | |
| Punctuation = Token.Punctuation | |
| Operator = Token.Operator | |
| Comment = Token.Comment | |
| Generic = Token.Generic | |
| dict | STANDARD_TYPES |
pygments.token
~~~~~~~~~~~~~~
Basic token types and the standard tokens.
:copyright: Copyright 2006-2023 by the Pygments team, see AUTHORS.
:license: BSD, see LICENSE for details.
| pip._vendor.pygments.token.is_token_subtype | ( | ttype, | |
| other | |||
| ) |
Return True if ``ttype`` is a subtype of ``other``. exists for backwards compatibility. use ``ttype in other`` now.
| pip._vendor.pygments.token.string_to_tokentype | ( | s | ) |
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