Apex › Data & encoding

Finite automata (DFA)

The simplest computer: states and transitions, no memory — yet enough to power regexes and lexers. Feed a string and watch the active state walk the transitions, including the delightful 3-state machine for "divisible by 3".

More in Data & encoding