Regular Expression Parser

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
+5
source share
3 answers

Here is a list of tools that fit your needs:

+6

Lex Flex regexp-to-C.

+5

All Articles