]>
crepu.dev Git - config.git/blob - djavu-asus/emacs/elpy/rpc-venv/lib/python3.11/site-packages/blib2to3/pgen2/token.py
1 """Token constants (from "token.h")."""
3 from typing
import Dict
, Final
5 # Taken from Python (r53757) and modified to include some tokens
6 # originally monkeypatched in by pgen2.tokenize
40 GREATEREQUAL
: Final
= 31
42 CIRCUMFLEX
: Final
= 33
44 RIGHTSHIFT
: Final
= 35
45 DOUBLESTAR
: Final
= 36
49 SLASHEQUAL
: Final
= 40
50 PERCENTEQUAL
: Final
= 41
51 AMPEREQUAL
: Final
= 42
53 CIRCUMFLEXEQUAL
: Final
= 44
54 LEFTSHIFTEQUAL
: Final
= 45
55 RIGHTSHIFTEQUAL
: Final
= 46
56 DOUBLESTAREQUAL
: Final
= 47
57 DOUBLESLASH
: Final
= 48
58 DOUBLESLASHEQUAL
: Final
= 49
67 ERRORTOKEN
: Final
= 58
68 COLONEQUAL
: Final
= 59
70 NT_OFFSET
: Final
= 256
73 tok_name
: Final
[Dict
[int, str]] = {}
74 for _name
, _value
in list(globals().items()):
75 if type(_value
) is int:
76 tok_name
[_value
] = _name
79 def ISTERMINAL(x
: int) -> bool:
83 def ISNONTERMINAL(x
: int) -> bool:
87 def ISEOF(x
: int) -> bool: