context-free grammar

noun

A formal grammar in which every production rule is such that the left-hand side is exactly one non-terminal symbol and the right-hand side is zero or more terminal symbols and/or nonterminal symbols.

Similar

Meanings

nouncontext-free grammar (plural context-free grammars)

plural context-free grammars

  1. computingA formal grammar in which every production rule is such that the left-hand side is exactly one non-terminal symbol and the right-hand side is zero or more terminal symbols and/or nonterminal symbols.
    1 more example

    It remains to explain one final concept, namely what a context free language is. (Don’t get confused: we’ve told you what a context free grammar is, but not what a context free language is.) Quite simply, a context free language is a language that can be generated by a context free grammar. Some languages are context free, and some are not. For example, it seems plausible that English is a context free language. That is, it is probably possible to write a context free grammar that generates all (and only) the sentences that native speakers find acceptable. On the other hand, some dialects of Swiss-German are not context free. It can be proved mathematically that no context free grammar can generate all (and only) the sentences that native speakers of Swiss-German find acceptable.¹ So if you wanted to write a grammar for such dialects, you would have to employ additional grammatical mechanisms, not merely context free rules.

    2006, Patrick Blackburn, Johan Bos, Kristina Striegnitz, Learn Prolog Now!, §7.1

    Synonyms: CFG

Synonyms & antonyms

nounA formal grammar in which every production rule is such that the left-hand side is exactly one non-terminal symbol and the right-hand side is zero or more terminal symbols and/or nonterminal symbols.

Similar

Translations

Chinese Mandarin 上下文無關文法 /上下文无关文法
  • 上下文無關文法 /上下文无关文法 (shàngxiàwén wúguān wénfǎ)formal grammar
Czech bezkontextová gramatika
  • bezkontextová gramatikaformal grammar
Esperanto senkunteksta gramatiko
  • senkunteksta gramatikoformal grammar
Finnish yhteydetön kielioppi
  • yhteydetön kielioppiformal grammar
German kontextfreie Grammatik
  • kontextfreie Grammatikformal grammar
Icelandic samhengisfrjáls mállýsing
  • samhengisfrjáls mállýsingformal grammar
Polish gramatyka bezkontekstowa
  • gramatyka bezkontekstowaformal grammar
Cite this entry
APA

context-free grammar. (n.d.). In WatkinsX Dictionary. Retrieved November 4, 2026, from https://dictionary.watkinsx.com/word/context-free%20grammar

MLA

“context-free grammar.” WatkinsX Dictionary, https://dictionary.watkinsx.com/word/context-free%20grammar. Accessed November 4, 2026.

Chicago

WatkinsX Dictionary, s.v. “context-free grammar,” accessed November 4, 2026, https://dictionary.watkinsx.com/word/context-free%20grammar.

Source: context-free grammar on Wiktionary, CC BY-SA 4.0.