This is the optimal code for a self-contained formatter, although the original code is crafty in being smaller and simpler, and can be evaluated as using the original output as a scratch pad for state, making the final formatter more straightforward. While this code is longer, all code-paths are minimal.
|
|
||
1445 |
|
1445 |
|
1446 |
|
1446 |
|
1447 |
|
1447 |
|
1448 |
|
|
|
1449 |
|
1448 |
|
1450 |
|
1449 |
|
1451 |
|
1450 |
|
|
|
||
1472 |
|
1471 |
|
1473 |
|
1472 |
|
1474 |
|
1473 |
|
1475 |
|
|
|
1476 |
|
|
|
|
1474 |
|
|
1477 |
|
1475 |
|
1478 |
|
1476 |
|
1479 |
|
1477 |
|
|
|
||
1489 |
|
1487 |
|
1490 |
|
1488 |
|
1491 |
|
1489 |
|
1492 |
|
|
|
1493 |
|
|
|
1494 |
|
|
|
1495 |
|
|
|
1496 |
|
|
|
1497 |
|
|
|
1498 |
|
|
|
1499 |
|
|
|
1500 |
|
|
|
1501 |
|
|
|
1502 |
|
|
|
1503 |
|
|
|
1504 |
|
1490 |
|
1505 |
|
1491 |
|
1506 |
|
1492 |
|