|
59 | 59 | "operator": "OR", |
60 | 60 | "operands": [ |
61 | 61 | { |
62 | | - "type": "BinaryOperationNode", |
| 62 | + "type": "IntegerLiteralNode", |
63 | 63 | "payload": { |
64 | | - "operator": "OR", |
65 | | - "operands": [ |
66 | | - { |
67 | | - "type": "BinaryOperationNode", |
68 | | - "payload": { |
69 | | - "operator": "OR", |
70 | | - "operands": [ |
71 | | - { |
72 | | - "type": "IntegerLiteralNode", |
73 | | - "payload": { |
74 | | - "value": "0", |
75 | | - "format": "DECIMAL" |
76 | | - } |
77 | | - }, |
78 | | - { |
79 | | - "type": "IntegerLiteralNode", |
80 | | - "payload": { |
81 | | - "value": "1234567890", |
82 | | - "format": "DECIMAL" |
83 | | - } |
84 | | - } |
85 | | - ] |
86 | | - } |
87 | | - }, |
88 | | - { |
89 | | - "type": "IntegerLiteralNode", |
90 | | - "payload": { |
91 | | - "value": "42", |
92 | | - "format": "DECIMAL" |
93 | | - } |
94 | | - } |
95 | | - ] |
| 64 | + "value": "0", |
| 65 | + "format": "DECIMAL" |
96 | 66 | } |
97 | 67 | }, |
| 68 | + |
98 | 69 | { |
99 | 70 | "type": "IntegerLiteralNode", |
100 | 71 | "payload": { |
101 | | - "value": "0b10000000000000000000000000000000", |
102 | | - "format": "BINARY" |
| 72 | + "value": "1234567890", |
| 73 | + "format": "DECIMAL" |
103 | 74 | } |
104 | 75 | } |
105 | 76 | ] |
|
108 | 79 | { |
109 | 80 | "type": "IntegerLiteralNode", |
110 | 81 | "payload": { |
111 | | - "value": "0b01111111100000000000000000000000", |
112 | | - "format": "BINARY" |
| 82 | + "value": "42", |
| 83 | + "format": "DECIMAL" |
113 | 84 | } |
114 | 85 | } |
115 | 86 | ] |
|
118 | 89 | { |
119 | 90 | "type": "IntegerLiteralNode", |
120 | 91 | "payload": { |
121 | | - "value": "0B00000000011111111111111111111111", |
| 92 | + "value": "0b10000000000000000000000000000000", |
122 | 93 | "format": "BINARY" |
123 | 94 | } |
124 | 95 | } |
|
128 | 99 | { |
129 | 100 | "type": "IntegerLiteralNode", |
130 | 101 | "payload": { |
131 | | - "value": "0o755", |
132 | | - "format": "OCTAL" |
| 102 | + "value": "0b01111111100000000000000000000000", |
| 103 | + "format": "BINARY" |
133 | 104 | } |
134 | 105 | } |
135 | 106 | ] |
|
138 | 109 | { |
139 | 110 | "type": "IntegerLiteralNode", |
140 | 111 | "payload": { |
141 | | - "value": "0o644", |
142 | | - "format": "OCTAL" |
| 112 | + "value": "0B00000000011111111111111111111111", |
| 113 | + "format": "BINARY" |
143 | 114 | } |
144 | 115 | } |
145 | 116 | ] |
|
148 | 119 | { |
149 | 120 | "type": "IntegerLiteralNode", |
150 | 121 | "payload": { |
151 | | - "value": "0xFFFFFFFFFFFFFFFFF", |
152 | | - "format": "HEXADECIMAL" |
| 122 | + "value": "0o755", |
| 123 | + "format": "OCTAL" |
153 | 124 | } |
154 | 125 | } |
155 | 126 | ] |
|
158 | 129 | { |
159 | 130 | "type": "IntegerLiteralNode", |
160 | 131 | "payload": { |
161 | | - "value": "0x123456789ABCDEF", |
162 | | - "format": "HEXADECIMAL" |
| 132 | + "value": "0o644", |
| 133 | + "format": "OCTAL" |
163 | 134 | } |
164 | 135 | } |
165 | 136 | ] |
|
168 | 139 | { |
169 | 140 | "type": "IntegerLiteralNode", |
170 | 141 | "payload": { |
171 | | - "value": "0xA", |
| 142 | + "value": "0xFFFFFFFFFFFFFFFFF", |
172 | 143 | "format": "HEXADECIMAL" |
173 | 144 | } |
174 | 145 | } |
|
178 | 149 | { |
179 | 150 | "type": "IntegerLiteralNode", |
180 | 151 | "payload": { |
181 | | - "value": "1E3", |
182 | | - "format": "DECIMAL" |
| 152 | + "value": "0x123456789ABCDEF", |
| 153 | + "format": "HEXADECIMAL" |
183 | 154 | } |
184 | 155 | } |
185 | 156 | ] |
|
188 | 159 | { |
189 | 160 | "type": "IntegerLiteralNode", |
190 | 161 | "payload": { |
191 | | - "value": "2e6", |
192 | | - "format": "DECIMAL" |
| 162 | + "value": "0xA", |
| 163 | + "format": "HEXADECIMAL" |
193 | 164 | } |
194 | 165 | } |
195 | 166 | ] |
|
0 commit comments