| Language | Grammar | Machine | Example |
|---|---|---|---|
| Regular language | Regular grammar
|
Deterministic or nondeterministic finite-state acceptor | a* |
| Context-free language | Context-free grammar | Nondeterministic pushdown automaton | a b![]() |
| Context-sensitive language | Context-sensitive grammar | Linear-bounded automaton | a b c![]() |
| Recursively enumerable language | Unrestricted grammar | Turing machine | Any computable function |
These languages form a strict hierarchy; that is,
regular languages
context-free languages
context-sensitive languages
recursively enumerable languages.