Hacker News new | past | comments | ask | show | jobs | submit
What you're describing is using a parser generator to take a regex and turn it into code you can embed into your project. This already exists and you can use it now. https://re2c.org/
loading story #50567868