Sometimes, it would be convenient to have a highly optimized function for regex search instead of including a library generating parsers at runtime. Is there a parser generator that would fit such a role?
Ideally, it would:
- create a single C function
- generate a DFA corresponding to the given regular expression
- be as efficient as KMP or Boyer-Moore in simple cases