|
| 1 | + |
1 | 2 | # parsetab.py |
2 | 3 | # This file is automatically generated. Do not edit. |
3 | 4 | # pylint: disable=W,C,R |
4 | | -_tabversion = "3.10" |
5 | | - |
6 | | -_lr_method = "LALR" |
| 5 | +_tabversion = '3.10' |
7 | 6 |
|
8 | | -_lr_signature = "ADDRESS BOOL BYTES BYTESM COMMA FIXED FIXEDMN FUNCTION INT INTN LBRAKET LPAREN NUMBER RBRAKET RPAREN STRING UFIXED UFIXEDMN UINT UINTN\n T : UINTN\n T : UINT\n T : INTN\n T : INT\n T : ADDRESS\n T : BOOL\n T : FIXEDMN\n T : UFIXEDMN\n T : FIXED\n T : UFIXED\n T : BYTESM\n T : FUNCTION\n T : BYTES\n T : STRING\n\n \n TL : T\n \n TL : T COMMA TL\n \n T : LPAREN TL RPAREN\n \n T : LPAREN RPAREN\n \n T : T LBRAKET RBRAKET\n \n T : T LBRAKET NUMBER RBRAKET\n " |
| 7 | +_lr_method = 'LALR' |
9 | 8 |
|
10 | | -_lr_action_items = { |
11 | | - "UINTN": ([0, 16, 24,], [2, 2, 2,]), |
12 | | - "UINT": ([0, 16, 24,], [3, 3, 3,]), |
13 | | - "INTN": ([0, 16, 24,], [4, 4, 4,]), |
14 | | - "INT": ([0, 16, 24,], [5, 5, 5,]), |
15 | | - "ADDRESS": ([0, 16, 24,], [6, 6, 6,]), |
16 | | - "BOOL": ([0, 16, 24,], [7, 7, 7,]), |
17 | | - "FIXEDMN": ([0, 16, 24,], [8, 8, 8,]), |
18 | | - "UFIXEDMN": ([0, 16, 24,], [9, 9, 9,]), |
19 | | - "FIXED": ([0, 16, 24,], [10, 10, 10,]), |
20 | | - "UFIXED": ([0, 16, 24,], [11, 11, 11,]), |
21 | | - "BYTESM": ([0, 16, 24,], [12, 12, 12,]), |
22 | | - "FUNCTION": ([0, 16, 24,], [13, 13, 13,]), |
23 | | - "BYTES": ([0, 16, 24,], [14, 14, 14,]), |
24 | | - "STRING": ([0, 16, 24,], [15, 15, 15,]), |
25 | | - "LPAREN": ([0, 16, 24,], [16, 16, 16,]), |
26 | | - "$end": ( |
27 | | - [1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 19, 21, 23, 25,], |
28 | | - [0, -1, -2, -3, -4, -5, -6, -7, -8, -9, -10, -11, -12, -13, -14, -18, -19, -17, -20,], |
29 | | - ), |
30 | | - "LBRAKET": ( |
31 | | - [1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 19, 20, 21, 23, 25,], |
32 | | - [17, -1, -2, -3, -4, -5, -6, -7, -8, -9, -10, -11, -12, -13, -14, -18, 17, -19, -17, -20,], |
33 | | - ), |
34 | | - "COMMA": ( |
35 | | - [2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 19, 20, 21, 23, 25,], |
36 | | - [-1, -2, -3, -4, -5, -6, -7, -8, -9, -10, -11, -12, -13, -14, -18, 24, -19, -17, -20,], |
37 | | - ), |
38 | | - "RPAREN": ( |
39 | | - [2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 18, 19, 20, 21, 23, 25, 26,], |
40 | | - [ |
41 | | - -1, |
42 | | - -2, |
43 | | - -3, |
44 | | - -4, |
45 | | - -5, |
46 | | - -6, |
47 | | - -7, |
48 | | - -8, |
49 | | - -9, |
50 | | - -10, |
51 | | - -11, |
52 | | - -12, |
53 | | - -13, |
54 | | - -14, |
55 | | - 19, |
56 | | - 23, |
57 | | - -18, |
58 | | - -15, |
59 | | - -19, |
60 | | - -17, |
61 | | - -20, |
62 | | - -16, |
63 | | - ], |
64 | | - ), |
65 | | - "RBRAKET": ([17, 22,], [21, 25,]), |
66 | | - "NUMBER": ([17,], [22,]), |
67 | | -} |
| 9 | +_lr_signature = 'ADDRESS BOOL BYTES BYTESM COMMA FIXED FIXEDMN FUNCTION INT INTN LBRAKET LPAREN NUMBER RBRAKET RPAREN STRING UFIXED UFIXEDMN UINT UINTN\n T : UINTN\n T : UINT\n T : INTN\n T : INT\n T : ADDRESS\n T : BOOL\n T : FIXEDMN\n T : UFIXEDMN\n T : FIXED\n T : UFIXED\n T : BYTESM\n T : FUNCTION\n T : BYTES\n T : STRING\n\n \n TL : T\n \n TL : T COMMA TL\n \n T : LPAREN TL RPAREN\n \n T : LPAREN RPAREN\n \n T : T LBRAKET RBRAKET\n \n T : T LBRAKET NUMBER RBRAKET\n ' |
| 10 | + |
| 11 | +_lr_action_items = {'UINTN':([0,16,24,],[2,2,2,]),'UINT':([0,16,24,],[3,3,3,]),'INTN':([0,16,24,],[4,4,4,]),'INT':([0,16,24,],[5,5,5,]),'ADDRESS':([0,16,24,],[6,6,6,]),'BOOL':([0,16,24,],[7,7,7,]),'FIXEDMN':([0,16,24,],[8,8,8,]),'UFIXEDMN':([0,16,24,],[9,9,9,]),'FIXED':([0,16,24,],[10,10,10,]),'UFIXED':([0,16,24,],[11,11,11,]),'BYTESM':([0,16,24,],[12,12,12,]),'FUNCTION':([0,16,24,],[13,13,13,]),'BYTES':([0,16,24,],[14,14,14,]),'STRING':([0,16,24,],[15,15,15,]),'LPAREN':([0,16,24,],[16,16,16,]),'$end':([1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,19,21,23,25,],[0,-1,-2,-3,-4,-5,-6,-7,-8,-9,-10,-11,-12,-13,-14,-18,-19,-17,-20,]),'LBRAKET':([1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,19,20,21,23,25,],[17,-1,-2,-3,-4,-5,-6,-7,-8,-9,-10,-11,-12,-13,-14,-18,17,-19,-17,-20,]),'COMMA':([2,3,4,5,6,7,8,9,10,11,12,13,14,15,19,20,21,23,25,],[-1,-2,-3,-4,-5,-6,-7,-8,-9,-10,-11,-12,-13,-14,-18,24,-19,-17,-20,]),'RPAREN':([2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,18,19,20,21,23,25,26,],[-1,-2,-3,-4,-5,-6,-7,-8,-9,-10,-11,-12,-13,-14,19,23,-18,-15,-19,-17,-20,-16,]),'RBRAKET':([17,22,],[21,25,]),'NUMBER':([17,],[22,]),} |
68 | 12 |
|
69 | 13 | _lr_action = {} |
70 | 14 | for _k, _v in _lr_action_items.items(): |
71 | | - for _x, _y in zip(_v[0], _v[1]): |
72 | | - if not _x in _lr_action: |
73 | | - _lr_action[_x] = {} |
74 | | - _lr_action[_x][_k] = _y |
| 15 | + for _x,_y in zip(_v[0],_v[1]): |
| 16 | + if not _x in _lr_action: _lr_action[_x] = {} |
| 17 | + _lr_action[_x][_k] = _y |
75 | 18 | del _lr_action_items |
76 | 19 |
|
77 | | -_lr_goto_items = { |
78 | | - "T": ([0, 16, 24,], [1, 20, 20,]), |
79 | | - "TL": ([16, 24,], [18, 26,]), |
80 | | -} |
| 20 | +_lr_goto_items = {'T':([0,16,24,],[1,20,20,]),'TL':([16,24,],[18,26,]),} |
81 | 21 |
|
82 | 22 | _lr_goto = {} |
83 | 23 | for _k, _v in _lr_goto_items.items(): |
84 | | - for _x, _y in zip(_v[0], _v[1]): |
85 | | - if not _x in _lr_goto: |
86 | | - _lr_goto[_x] = {} |
87 | | - _lr_goto[_x][_k] = _y |
| 24 | + for _x, _y in zip(_v[0], _v[1]): |
| 25 | + if not _x in _lr_goto: _lr_goto[_x] = {} |
| 26 | + _lr_goto[_x][_k] = _y |
88 | 27 | del _lr_goto_items |
89 | 28 | _lr_productions = [ |
90 | | - ("S' -> T", "S'", 1, None, None, None), |
91 | | - ("T -> UINTN", "T", 1, "p_basic_type", "abitypes.py", 154), |
92 | | - ("T -> UINT", "T", 1, "p_basic_type", "abitypes.py", 155), |
93 | | - ("T -> INTN", "T", 1, "p_basic_type", "abitypes.py", 156), |
94 | | - ("T -> INT", "T", 1, "p_basic_type", "abitypes.py", 157), |
95 | | - ("T -> ADDRESS", "T", 1, "p_basic_type", "abitypes.py", 158), |
96 | | - ("T -> BOOL", "T", 1, "p_basic_type", "abitypes.py", 159), |
97 | | - ("T -> FIXEDMN", "T", 1, "p_basic_type", "abitypes.py", 160), |
98 | | - ("T -> UFIXEDMN", "T", 1, "p_basic_type", "abitypes.py", 161), |
99 | | - ("T -> FIXED", "T", 1, "p_basic_type", "abitypes.py", 162), |
100 | | - ("T -> UFIXED", "T", 1, "p_basic_type", "abitypes.py", 163), |
101 | | - ("T -> BYTESM", "T", 1, "p_basic_type", "abitypes.py", 164), |
102 | | - ("T -> FUNCTION", "T", 1, "p_basic_type", "abitypes.py", 165), |
103 | | - ("T -> BYTES", "T", 1, "p_basic_type", "abitypes.py", 166), |
104 | | - ("T -> STRING", "T", 1, "p_basic_type", "abitypes.py", 167), |
105 | | - ("TL -> T", "TL", 1, "p_type_list_one", "abitypes.py", 175), |
106 | | - ("TL -> T COMMA TL", "TL", 3, "p_type_list", "abitypes.py", 182), |
107 | | - ("T -> LPAREN TL RPAREN", "T", 3, "p_tuple", "abitypes.py", 189), |
108 | | - ("T -> LPAREN RPAREN", "T", 2, "p_tuple_empty", "abitypes.py", 196), |
109 | | - ("T -> T LBRAKET RBRAKET", "T", 3, "p_dynamic_type", "abitypes.py", 203), |
110 | | - ("T -> T LBRAKET NUMBER RBRAKET", "T", 4, "p_dynamic_fixed_type", "abitypes.py", 212), |
| 29 | + ("S' -> T","S'",1,None,None,None), |
| 30 | + ('T -> UINTN','T',1,'p_basic_type','abitypes.py',154), |
| 31 | + ('T -> UINT','T',1,'p_basic_type','abitypes.py',155), |
| 32 | + ('T -> INTN','T',1,'p_basic_type','abitypes.py',156), |
| 33 | + ('T -> INT','T',1,'p_basic_type','abitypes.py',157), |
| 34 | + ('T -> ADDRESS','T',1,'p_basic_type','abitypes.py',158), |
| 35 | + ('T -> BOOL','T',1,'p_basic_type','abitypes.py',159), |
| 36 | + ('T -> FIXEDMN','T',1,'p_basic_type','abitypes.py',160), |
| 37 | + ('T -> UFIXEDMN','T',1,'p_basic_type','abitypes.py',161), |
| 38 | + ('T -> FIXED','T',1,'p_basic_type','abitypes.py',162), |
| 39 | + ('T -> UFIXED','T',1,'p_basic_type','abitypes.py',163), |
| 40 | + ('T -> BYTESM','T',1,'p_basic_type','abitypes.py',164), |
| 41 | + ('T -> FUNCTION','T',1,'p_basic_type','abitypes.py',165), |
| 42 | + ('T -> BYTES','T',1,'p_basic_type','abitypes.py',166), |
| 43 | + ('T -> STRING','T',1,'p_basic_type','abitypes.py',167), |
| 44 | + ('TL -> T','TL',1,'p_type_list_one','abitypes.py',175), |
| 45 | + ('TL -> T COMMA TL','TL',3,'p_type_list','abitypes.py',182), |
| 46 | + ('T -> LPAREN TL RPAREN','T',3,'p_tuple','abitypes.py',189), |
| 47 | + ('T -> LPAREN RPAREN','T',2,'p_tuple_empty','abitypes.py',196), |
| 48 | + ('T -> T LBRAKET RBRAKET','T',3,'p_dynamic_type','abitypes.py',203), |
| 49 | + ('T -> T LBRAKET NUMBER RBRAKET','T',4,'p_dynamic_fixed_type','abitypes.py',212), |
111 | 50 | ] |
0 commit comments