fsm-tools¶
A formal Python library for modelling automata in the Chomsky hierarchy.
fsm-tools provides a rigorous, educational implementation of the four automaton families defined by Chomsky’s grammar and language hierarchy. Each class is a formal restriction of the one above it — inheriting its structure and constraining it further.
Type |
Automaton |
Language family |
Status |
|---|---|---|---|
0 |
|
Recursively enumerable |
✅ v0.0.4 |
1 |
|
Context-sensitive |
✅ v0.0.4 |
2 |
|
Context-free |
✅ v0.1.0 |
3 |
|
Regular |
🔄 planned v0.2.0 |
Theory & Data Structures
API Reference