Expand description
Python byte lexer.
Constants§
- TOK_AS
askeyword token.- TOK_
ASYNC asynckeyword token.- TOK_AT
@token.- TOK_
AWAIT awaitkeyword token.- TOK_
CASE casekeyword token.- TOK_
CLASS classkeyword token.- TOK_
COLON :token.- TOK_
COMMA ,token.- TOK_
COMMENT - Comment token.
- TOK_DEF
defkeyword token.- TOK_DOT
.token.- TOK_EQ
=token.- TOK_
EXCEPT exceptkeyword token.- TOK_
FROM fromkeyword token.- TOK_
IDENTIFIER - Identifier token.
- TOK_
IMPORT importkeyword token.- TOK_
LBRACE {token.- TOK_
LBRACKET [token.- TOK_
LPAREN (token.- TOK_
MATCH matchkeyword token.- TOK_
NEWLINE - Newline token.
- TOK_
NONE - Sparse-token sentinel: non-token byte positions stay zeroed.
- TOK_
NUMBER - Number literal token.
- TOK_
RBRACE }token.- TOK_
RBRACKET ]token.- TOK_
RPAREN )token.- TOK_
STAR *token.- TOK_
STRING - String literal token.
- TOK_
WITH withkeyword token.
Functions§
- python312_
lexer - GPU Python 3.12 sparse lexer.