]> crepu.dev Git - config.git/blame_incremental - djavu-asus/elpy/rpc-venv/lib/python3.11/site-packages/blib2to3/pgen2/token.py
Configuracion en desarrollo PC pega
[config.git] / djavu-asus / elpy / rpc-venv / lib / python3.11 / site-packages / blib2to3 / pgen2 / token.py
... / ...
CommitLineData
1"""Token constants (from "token.h")."""
2
3from typing import Dict, Final
4
5# Taken from Python (r53757) and modified to include some tokens
6# originally monkeypatched in by pgen2.tokenize
7
8# --start constants--
9ENDMARKER: Final = 0
10NAME: Final = 1
11NUMBER: Final = 2
12STRING: Final = 3
13NEWLINE: Final = 4
14INDENT: Final = 5
15DEDENT: Final = 6
16LPAR: Final = 7
17RPAR: Final = 8
18LSQB: Final = 9
19RSQB: Final = 10
20COLON: Final = 11
21COMMA: Final = 12
22SEMI: Final = 13
23PLUS: Final = 14
24MINUS: Final = 15
25STAR: Final = 16
26SLASH: Final = 17
27VBAR: Final = 18
28AMPER: Final = 19
29LESS: Final = 20
30GREATER: Final = 21
31EQUAL: Final = 22
32DOT: Final = 23
33PERCENT: Final = 24
34BACKQUOTE: Final = 25
35LBRACE: Final = 26
36RBRACE: Final = 27
37EQEQUAL: Final = 28
38NOTEQUAL: Final = 29
39LESSEQUAL: Final = 30
40GREATEREQUAL: Final = 31
41TILDE: Final = 32
42CIRCUMFLEX: Final = 33
43LEFTSHIFT: Final = 34
44RIGHTSHIFT: Final = 35
45DOUBLESTAR: Final = 36
46PLUSEQUAL: Final = 37
47MINEQUAL: Final = 38
48STAREQUAL: Final = 39
49SLASHEQUAL: Final = 40
50PERCENTEQUAL: Final = 41
51AMPEREQUAL: Final = 42
52VBAREQUAL: Final = 43
53CIRCUMFLEXEQUAL: Final = 44
54LEFTSHIFTEQUAL: Final = 45
55RIGHTSHIFTEQUAL: Final = 46
56DOUBLESTAREQUAL: Final = 47
57DOUBLESLASH: Final = 48
58DOUBLESLASHEQUAL: Final = 49
59AT: Final = 50
60ATEQUAL: Final = 51
61OP: Final = 52
62COMMENT: Final = 53
63NL: Final = 54
64RARROW: Final = 55
65AWAIT: Final = 56
66ASYNC: Final = 57
67ERRORTOKEN: Final = 58
68COLONEQUAL: Final = 59
69N_TOKENS: Final = 60
70NT_OFFSET: Final = 256
71# --end constants--
72
73tok_name: Final[Dict[int, str]] = {}
74for _name, _value in list(globals().items()):
75 if type(_value) is int:
76 tok_name[_value] = _name
77
78
79def ISTERMINAL(x: int) -> bool:
80 return x < NT_OFFSET
81
82
83def ISNONTERMINAL(x: int) -> bool:
84 return x >= NT_OFFSET
85
86
87def ISEOF(x: int) -> bool:
88 return x == ENDMARKER