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![]() ![]() |
Context-sensitive language | Context-sensitive grammar | Linear-bounded automaton | a![]() ![]() ![]() |
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.