> Nice! Micro-fix: you should remove the final `;` in the `FPRINTF()` macro definition, that's supposed to be added at the callsite to keep the syntax natural (for C).
I agree; this was probably an oversight (done in a single day, on a weekend day, so I probably spent no more than about 6 hours on it).
If I want to make this production-ready, I'd move it into a repo, split it into a library (so I can drive it from Python or similar), add some tests, etc...
I literally needed a once-off tool to parse HTML, and had some time to spare.
I agree; this was probably an oversight (done in a single day, on a weekend day, so I probably spent no more than about 6 hours on it).
If I want to make this production-ready, I'd move it into a repo, split it into a library (so I can drive it from Python or similar), add some tests, etc...
I literally needed a once-off tool to parse HTML, and had some time to spare.