mirror of
https://github.com/jackyzha0/quartz.git
synced 2025-12-24 13:24:05 -06:00
673 B
673 B
| title | tags | |
|---|---|---|
| finite-state-machine |
|
A finite state machine is a program which has a number of states called nodes with transition edges between them. You then move the state of the program to a particular state by navigating through the edges.
This can be implemented as a large switch block. However, this results code which is not suited for readability. It may be useful to define the program using some higher order structure, and create it programmatically via 2 1 Using code to create code
For example something like a phone machine could be implemented as a finite state machine