()
| 1353 | } |
| 1354 | |
| 1355 | function parse_UnnamedToken() { |
| 1356 | var result0, result1; |
| 1357 | var pos0, pos1; |
| 1358 | |
| 1359 | reportFailures++; |
| 1360 | pos0 = pos; |
| 1361 | pos1 = pos; |
| 1362 | if (input.charCodeAt(pos) === 37) { |
| 1363 | result0 = "%"; |
| 1364 | pos++; |
| 1365 | } else { |
| 1366 | result0 = null; |
| 1367 | if (reportFailures === 0) { |
| 1368 | matchFailed("\"%\""); |
| 1369 | } |
| 1370 | } |
| 1371 | if (result0 !== null) { |
| 1372 | if (input.charCodeAt(pos) === 115) { |
| 1373 | result1 = "s"; |
| 1374 | pos++; |
| 1375 | } else { |
| 1376 | result1 = null; |
| 1377 | if (reportFailures === 0) { |
| 1378 | matchFailed("\"s\""); |
| 1379 | } |
| 1380 | } |
| 1381 | if (result1 === null) { |
| 1382 | if (input.charCodeAt(pos) === 100) { |
| 1383 | result1 = "d"; |
| 1384 | pos++; |
| 1385 | } else { |
| 1386 | result1 = null; |
| 1387 | if (reportFailures === 0) { |
| 1388 | matchFailed("\"d\""); |
| 1389 | } |
| 1390 | } |
| 1391 | } |
| 1392 | if (result1 !== null) { |
| 1393 | result0 = [result0, result1]; |
| 1394 | } else { |
| 1395 | result0 = null; |
| 1396 | pos = pos1; |
| 1397 | } |
| 1398 | } else { |
| 1399 | result0 = null; |
| 1400 | pos = pos1; |
| 1401 | } |
| 1402 | if (result0 !== null) { |
| 1403 | result0 = (function(offset, type) { |
| 1404 | return { |
| 1405 | type: type === "d" ? "number" : "string", |
| 1406 | index: tokenIndex++ |
| 1407 | } |
| 1408 | })(pos0, result0[1]); |
| 1409 | } |
| 1410 | if (result0 === null) { |
| 1411 | pos = pos0; |
| 1412 | } |
no test coverage detected