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

TuringMachine

Recursively enumerable

✅ v0.0.4

1

LinearBoundedAutomaton

Context-sensitive

✅ v0.0.4

2

PushdownAutomaton

Context-free

✅ v0.1.0

3

FiniteStateAutomaton

Regular

🔄 planned v0.2.0

Indices and references