Grammars, parsing and pushdown automata
Grammar basics and derivation forests, Chomsky and Greibach normal forms, ε- and unit-production elimination, CYK and Earley recognizers, leftmost derivations and (inherent) ambiguity, pushdown automata, deterministic context-free languages, and the grammar–PDA equivalence.
- Context-free grammars
- Ambiguity of context-free grammars
- Earley parser
- Elimination of empty and unit productions
- Chomsky normal form
- CYK algorithm
- Greibach normal form
- Pushdown automata
- Pushdown automata and context-free grammars
- Deterministic context-free languages
TheoremRegular languages over a finite alphabet are context-free#✓fully proved
Cslib.Language.IsRegular.isContextFree
Over a finite alphabet, every regular language is context-free.
Finiteness of the alphabet is necessary: a grammar has finitely many productions, hence mentions only finitely many terminal symbols, but a DFA over an infinite alphabet may accept every one-letter word.
Loading dependency explorer…
The dependency explorer needs JavaScript and its graph data.