Language | Grammar | Machine | Example |
---|---|---|---|
Regular language | Regular grammar
|
Deterministic or nondeterministic finite-state acceptor | a* |
Context-free language | Context-free grammar | Nondeterministic pushdown automaton | ab |
Context-sensitive language | Context-sensitive grammar | Linear-bounded automaton | abc |
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.