|
1170 | 1170 | address0 = this._read_repeated_atom(); |
1171 | 1171 | if (address0 === FAILURE) { |
1172 | 1172 | this._offset = index1; |
1173 | | - address0 = this._read_terminal(); |
| 1173 | + address0 = this._read_maybe_atom(); |
1174 | 1174 | if (address0 === FAILURE) { |
1175 | 1175 | this._offset = index1; |
1176 | | - var index2 = this._offset, elements0 = new Array(5); |
1177 | | - var address1 = FAILURE; |
1178 | | - var chunk0 = null, max0 = this._offset + 1; |
1179 | | - if (max0 <= this._inputSize) { |
1180 | | - chunk0 = this._input.substring(this._offset, max0); |
1181 | | - } |
1182 | | - if (chunk0 === '(') { |
1183 | | - address1 = new TreeNode(this._input.substring(this._offset, this._offset + 1), this._offset, []); |
1184 | | - this._offset = this._offset + 1; |
1185 | | - } else { |
1186 | | - address1 = FAILURE; |
1187 | | - if (this._offset > this._failure) { |
1188 | | - this._failure = this._offset; |
1189 | | - this._expected = []; |
1190 | | - } |
1191 | | - if (this._offset === this._failure) { |
1192 | | - this._expected.push('"("'); |
1193 | | - } |
1194 | | - } |
1195 | | - if (address1 !== FAILURE) { |
1196 | | - elements0[0] = address1; |
1197 | | - var address2 = FAILURE; |
1198 | | - var remaining0 = 0, index3 = this._offset, elements1 = [], address3 = true; |
1199 | | - while (address3 !== FAILURE) { |
1200 | | - address3 = this._read__(); |
1201 | | - if (address3 !== FAILURE) { |
1202 | | - elements1.push(address3); |
1203 | | - --remaining0; |
1204 | | - } |
| 1176 | + address0 = this._read_terminal(); |
| 1177 | + if (address0 === FAILURE) { |
| 1178 | + this._offset = index1; |
| 1179 | + var index2 = this._offset, elements0 = new Array(5); |
| 1180 | + var address1 = FAILURE; |
| 1181 | + var chunk0 = null, max0 = this._offset + 1; |
| 1182 | + if (max0 <= this._inputSize) { |
| 1183 | + chunk0 = this._input.substring(this._offset, max0); |
1205 | 1184 | } |
1206 | | - if (remaining0 <= 0) { |
1207 | | - address2 = new TreeNode(this._input.substring(index3, this._offset), index3, elements1); |
1208 | | - this._offset = this._offset; |
| 1185 | + if (chunk0 === '(') { |
| 1186 | + address1 = new TreeNode(this._input.substring(this._offset, this._offset + 1), this._offset, []); |
| 1187 | + this._offset = this._offset + 1; |
1209 | 1188 | } else { |
1210 | | - address2 = FAILURE; |
| 1189 | + address1 = FAILURE; |
| 1190 | + if (this._offset > this._failure) { |
| 1191 | + this._failure = this._offset; |
| 1192 | + this._expected = []; |
| 1193 | + } |
| 1194 | + if (this._offset === this._failure) { |
| 1195 | + this._expected.push('"("'); |
| 1196 | + } |
1211 | 1197 | } |
1212 | | - if (address2 !== FAILURE) { |
1213 | | - elements0[1] = address2; |
1214 | | - var address4 = FAILURE; |
1215 | | - address4 = this._read_actionable(); |
1216 | | - if (address4 !== FAILURE) { |
1217 | | - elements0[2] = address4; |
1218 | | - var address5 = FAILURE; |
1219 | | - var remaining1 = 0, index4 = this._offset, elements2 = [], address6 = true; |
1220 | | - while (address6 !== FAILURE) { |
1221 | | - address6 = this._read__(); |
1222 | | - if (address6 !== FAILURE) { |
1223 | | - elements2.push(address6); |
1224 | | - --remaining1; |
1225 | | - } |
1226 | | - } |
1227 | | - if (remaining1 <= 0) { |
1228 | | - address5 = new TreeNode(this._input.substring(index4, this._offset), index4, elements2); |
1229 | | - this._offset = this._offset; |
1230 | | - } else { |
1231 | | - address5 = FAILURE; |
| 1198 | + if (address1 !== FAILURE) { |
| 1199 | + elements0[0] = address1; |
| 1200 | + var address2 = FAILURE; |
| 1201 | + var remaining0 = 0, index3 = this._offset, elements1 = [], address3 = true; |
| 1202 | + while (address3 !== FAILURE) { |
| 1203 | + address3 = this._read__(); |
| 1204 | + if (address3 !== FAILURE) { |
| 1205 | + elements1.push(address3); |
| 1206 | + --remaining0; |
1232 | 1207 | } |
1233 | | - if (address5 !== FAILURE) { |
1234 | | - elements0[3] = address5; |
1235 | | - var address7 = FAILURE; |
1236 | | - var chunk1 = null, max1 = this._offset + 1; |
1237 | | - if (max1 <= this._inputSize) { |
1238 | | - chunk1 = this._input.substring(this._offset, max1); |
| 1208 | + } |
| 1209 | + if (remaining0 <= 0) { |
| 1210 | + address2 = new TreeNode(this._input.substring(index3, this._offset), index3, elements1); |
| 1211 | + this._offset = this._offset; |
| 1212 | + } else { |
| 1213 | + address2 = FAILURE; |
| 1214 | + } |
| 1215 | + if (address2 !== FAILURE) { |
| 1216 | + elements0[1] = address2; |
| 1217 | + var address4 = FAILURE; |
| 1218 | + address4 = this._read_actionable(); |
| 1219 | + if (address4 !== FAILURE) { |
| 1220 | + elements0[2] = address4; |
| 1221 | + var address5 = FAILURE; |
| 1222 | + var remaining1 = 0, index4 = this._offset, elements2 = [], address6 = true; |
| 1223 | + while (address6 !== FAILURE) { |
| 1224 | + address6 = this._read__(); |
| 1225 | + if (address6 !== FAILURE) { |
| 1226 | + elements2.push(address6); |
| 1227 | + --remaining1; |
| 1228 | + } |
1239 | 1229 | } |
1240 | | - if (chunk1 === ')') { |
1241 | | - address7 = new TreeNode(this._input.substring(this._offset, this._offset + 1), this._offset, []); |
1242 | | - this._offset = this._offset + 1; |
| 1230 | + if (remaining1 <= 0) { |
| 1231 | + address5 = new TreeNode(this._input.substring(index4, this._offset), index4, elements2); |
| 1232 | + this._offset = this._offset; |
1243 | 1233 | } else { |
1244 | | - address7 = FAILURE; |
1245 | | - if (this._offset > this._failure) { |
1246 | | - this._failure = this._offset; |
1247 | | - this._expected = []; |
| 1234 | + address5 = FAILURE; |
| 1235 | + } |
| 1236 | + if (address5 !== FAILURE) { |
| 1237 | + elements0[3] = address5; |
| 1238 | + var address7 = FAILURE; |
| 1239 | + var chunk1 = null, max1 = this._offset + 1; |
| 1240 | + if (max1 <= this._inputSize) { |
| 1241 | + chunk1 = this._input.substring(this._offset, max1); |
1248 | 1242 | } |
1249 | | - if (this._offset === this._failure) { |
1250 | | - this._expected.push('")"'); |
| 1243 | + if (chunk1 === ')') { |
| 1244 | + address7 = new TreeNode(this._input.substring(this._offset, this._offset + 1), this._offset, []); |
| 1245 | + this._offset = this._offset + 1; |
| 1246 | + } else { |
| 1247 | + address7 = FAILURE; |
| 1248 | + if (this._offset > this._failure) { |
| 1249 | + this._failure = this._offset; |
| 1250 | + this._expected = []; |
| 1251 | + } |
| 1252 | + if (this._offset === this._failure) { |
| 1253 | + this._expected.push('")"'); |
| 1254 | + } |
| 1255 | + } |
| 1256 | + if (address7 !== FAILURE) { |
| 1257 | + elements0[4] = address7; |
| 1258 | + } else { |
| 1259 | + elements0 = null; |
| 1260 | + this._offset = index2; |
1251 | 1261 | } |
1252 | | - } |
1253 | | - if (address7 !== FAILURE) { |
1254 | | - elements0[4] = address7; |
1255 | 1262 | } else { |
1256 | 1263 | elements0 = null; |
1257 | 1264 | this._offset = index2; |
|
1268 | 1275 | elements0 = null; |
1269 | 1276 | this._offset = index2; |
1270 | 1277 | } |
1271 | | - } else { |
1272 | | - elements0 = null; |
1273 | | - this._offset = index2; |
1274 | | - } |
1275 | | - if (elements0 === null) { |
1276 | | - address0 = FAILURE; |
1277 | | - } else { |
1278 | | - address0 = this._actions.paren_expr(this._input, index2, this._offset, elements0); |
1279 | | - this._offset = this._offset; |
1280 | | - } |
1281 | | - if (address0 === FAILURE) { |
1282 | | - this._offset = index1; |
| 1278 | + if (elements0 === null) { |
| 1279 | + address0 = FAILURE; |
| 1280 | + } else { |
| 1281 | + address0 = this._actions.paren_expr(this._input, index2, this._offset, elements0); |
| 1282 | + this._offset = this._offset; |
| 1283 | + } |
| 1284 | + if (address0 === FAILURE) { |
| 1285 | + this._offset = index1; |
| 1286 | + } |
1283 | 1287 | } |
1284 | 1288 | } |
1285 | 1289 | } |
|
0 commit comments