Matt Godbolt and Claude
a82775891e
Make ParsingState iterable with for...of loop support
...
Transform the manual while loop iteration pattern into idiomatic TypeScript:
- Add Symbol.iterator implementation to ParsingState
- Pass asmLines to ParsingState constructor instead of managing separately
- Replace `while (getCurrentLineIndex() < asmLines.length)` with `for (let line of this.parsingState)`
- Remove redundant nextLine() method (iterator handles advancement)
- Update tests to verify iterator functionality
This makes the main processing loop much more natural and eliminates the
awkward index management between ParsingState and the separate asmLines array.
The getCurrentLineIndex() method is retained only for the look-ahead functionality
in isUserFunctionByLookingAhead().
🤖 Generated with [Claude Code](https://claude.ai/code )
Co-Authored-By: Claude <noreply@anthropic.com >
2025-06-10 14:50:41 -05:00
..
2025-02-26 14:09:24 -06:00
2025-05-26 16:24:04 -05:00
2023-12-28 16:10:09 +02:00
2023-11-27 10:33:03 -05:00
2025-05-12 12:54:48 -05:00
2025-04-17 12:25:28 -05:00
2020-05-17 15:20:06 -04:00
2023-05-22 22:35:01 -05:00
2025-04-17 12:25:28 -05:00
2021-04-26 18:34:16 -05:00
2025-06-10 12:06:25 -05:00
2021-10-05 01:45:05 +02:00
2021-06-02 22:58:41 +02:00
2019-08-21 01:26:16 +02:00
2025-01-29 10:41:03 -06:00
2021-09-13 20:22:27 +02:00
2024-10-27 15:28:38 +02:00
2024-03-17 12:43:43 +02:00
2025-02-02 17:54:31 +00:00
2024-10-26 17:42:22 +02:00
2023-11-27 22:32:04 -06:00
2024-03-08 22:25:09 -06:00
2025-01-25 09:27:03 -06:00
2025-02-26 14:09:24 -06:00
2025-01-29 10:46:17 -06:00
2025-06-10 12:30:33 -05:00
2024-04-15 23:55:38 +02:00
2024-10-26 18:43:59 +03:00
2025-05-11 19:28:04 -05:00
2024-03-08 22:25:09 -06:00
2025-02-25 13:39:26 -06:00
2024-03-08 22:25:09 -06:00
2025-02-25 13:39:26 -06:00
2025-02-25 13:39:26 -06:00
2025-02-02 17:54:31 +00:00
2025-02-25 13:39:26 -06:00
2025-02-02 17:54:31 +00:00
2025-05-20 17:53:24 -05:00
2025-01-29 08:36:01 -06:00
2024-03-08 22:25:09 -06:00
2025-01-25 09:27:03 -06:00
2025-06-09 20:34:35 +02:00
2023-07-10 21:31:04 -05:00
2025-06-10 12:30:33 -05:00
2025-02-02 17:54:31 +00:00
2024-10-26 17:42:22 +02:00
2025-05-30 04:53:20 +02:00
2025-02-25 13:39:26 -06:00
2025-05-26 16:24:04 -05:00
2024-04-22 18:40:56 +02:00
2025-02-25 13:39:26 -06:00
2025-06-07 16:11:13 -05:00
2025-02-25 13:39:26 -06:00
2025-02-25 13:39:26 -06:00
2025-02-25 13:39:26 -06:00
2024-03-08 22:25:09 -06:00
2024-03-08 22:25:09 -06:00
2024-08-04 14:54:06 +03:00
2025-02-02 17:54:31 +00:00
2024-03-08 22:25:09 -06:00
2025-02-02 17:54:31 +00:00
2025-02-19 10:41:42 -06:00
2025-05-25 17:21:01 +02:00
2025-02-25 13:39:26 -06:00
2018-05-24 12:36:57 -05:00
2025-05-16 16:53:40 +02:00
2025-05-27 12:17:44 -05:00
2025-06-10 14:50:41 -05:00
2025-02-25 13:39:26 -06:00
2024-03-08 22:25:09 -06:00
2024-05-26 22:09:01 +02:00
2025-01-25 09:27:03 -06:00
2025-02-02 17:54:31 +00:00
2025-02-02 17:54:31 +00:00
2025-02-02 17:54:31 +00:00
2025-06-10 13:56:55 -05:00
2025-06-10 12:06:57 -05:00
2025-02-02 17:54:31 +00:00
2024-03-08 22:25:09 -06:00
2025-02-25 13:39:26 -06:00
2025-02-02 17:54:31 +00:00
2024-03-08 22:25:09 -06:00
2025-02-26 10:56:26 -06:00
2025-02-25 13:39:26 -06:00
2025-02-25 13:39:26 -06:00
2025-02-25 15:07:57 -06:00
2025-04-17 12:25:28 -05:00
2025-06-10 12:06:57 -05:00
2025-02-02 17:54:31 +00:00