3 ms·
A regular expression matcher in C using derivatives: http://www.kylheku.com/cgit/txr/tree/regex.c http://www.kylheku.com/cgit/txr/tree/regex.c Starting at the
by kazinator 11y ago
A regular expression matcher in C using derivatives:
http://www.kylheku.com/cgit/txr/tree/regex.c http://www.kylheku.com/cgit/txr/tree/regex.c
Starting at the function "dv_compile_regex". (The source file contains an NFA and derivatives implementation; the top level regex compiler will choose one or the other based on the absence or presence of exotic operators in the abstract syntax.)