Sometimes it would be convenient to have an optimized function for searching in a regular expression instead of including a library that generates parsers at runtime. Is there a parser generator that matches this role?
Ideally, this is:
- create a single function C
- generates a DFA matching the given regular expression
- be as effective as KMP or Boyer-Moore in simple cases
source
share