RegEx

Regular expression library: NFA/DFA construction and minimization, matching and formal language operations.

Graphs and algorithms
Figure 1 — Graphs and algorithms

From expressions to automata

Parsing determines the structure of the nondeterministic finite automaton. Determinisation treats a set of reachable states as one DFA state. Minimisation merges states with the same behaviour for every possible input suffix.

Verification

Examples cover matching, alternation, groups and language operations. The repository includes NFA and DFA sources and a test directory.

The C++ implementation includes the automaton in dfa.hpp and dfa.cpp. Test cases are in tests/tests.mm.

Related projects, disciplines and materials

Source code · e2942af12371aef66a1b0bb275a6f06f65333e9d