Computer science Automata and formal languages Concept
Context-free language
Summary
A context-free language is a formal language generated by some context-free grammar. The class contains every regular language and also languages with nesting, such as . Context-free languages are closed under union, concatenation and Kleene star, but not under intersection or complement. Their membership problem is decidable in polynomial time, which makes them the basis of parsing.
Where this leads
11 pages build on this one.
Further reading
About this page
| Tag | Q56EWEQYE2 |
|---|---|
| URI | m2://Q56EWEQYE2 |
| Kind | concept |
| Writing | W0 stub |
| MSC | 68Q45, 68Q42 |
| Specializes | Formal language |
| Same as | |
| Changed | 3 November 2026 |
Markdown · JSON · Edit on GitHub
What this page needs for W1
- an inventory row: the row of the inventory that the node accounts for (0 of 1)
- a source with a locator (0 of 1)
The writing levels say how complete the text of a page is. They do not measure its truth.
What links here
Special cases
Results about this
- Parikh's theorem
- Pumping lemma for context-free languages
- Ogden's lemma
- Chomsky–Schützenberger representation theorem
Used by
- Parikh's theorem
- Context-sensitive language
- Deterministic context-free language
- Chomsky hierarchy
- Greibach normal form
- Pushdown automaton
- Pumping lemma for context-free languages
- Ogden's lemma
- Chomsky–Schützenberger representation theorem
- Ambiguous grammar
- Chomsky normal form