Context-free languages
The context-free (type-2) languages — the languages of nested, recursive structure.
- Grammars. Context-free grammars (
is_CF): every rule has the formA → α, a single nonterminal on the left and an arbitrary stringαof terminals and nonterminals on the right. - Automata. Pushdown automata (
is_PDA) — finite automata with a stack, under final-state or empty-stack acceptance (the two agree).