Nice possibility as well, and definitely has some potential, but it has one drawback (in my case). After the flex has run the normal compiler and linker have to run.
So either I should, in that case:
- run the 'flex replacement' followed by a 'normal' ninja run
or
- I should incorporate the compilation and linking in the replacement script.
I think all a bit artificial for something in a build environment and in case of multiple files multiple runs (it can happen that I need / want to debug 2 files simultaneously)