Deterministic context-free languages
The deterministic context-free (DCF) languages — the languages of LR parsers, the proper subclass of the context-free languages closed under complement.
- Automata. Deterministic pushdown automata (DPDA): a pushdown automaton with at
most one applicable move in every configuration. The normal form used here is the
always-halting total DPDA (
DPDA.IsTotal), with language-level presentationis_DCF_total. - Grammars. LR(k) grammars: context-free grammars whose rightmost handle is uniquely determined by
the already-read prefix and
kterminals of lookahead. For every fixedk > 0, LR(k) languages are exactly DPDA languages; the existential finite-lookahead classLRtherefore equalsDPDA.ClassandDCF.