skipnothing/Regex Engines
UNIT 02

The NFA

Thompson construction, state machines, the regex as a graph

Every regex compiles to a graph: states connected by transitions on characters or ε (no character). Thompson's construction is the textbook way to build that graph, and seeing it makes every regex shape mechanical.

Loading…
TOPICS
All units