A context-free language is a formal language that is accepted by some pushdown automaton. Context-free languages can be generated by context-free grammars.
Context-free languages have many applications in programming languages; for example, the language of all properly matched parentheses is generated by the grammar . Also, most arithmetic expressions are generated by context-free grammars.
Context-Free Languages are closed under the following operations. That is, if L and P are Context-Free Languages and D is a Regular Language, the following languages are Context-Free as well:
Context-Free Languages are not closed under complement, intersection, or difference.
Bezkontextový jazyk | Kontextfreie Sprache | Linguaggio context-free | שפה חופשית הקשר | Język bezkontekstowy | Limbaje independente de context | Yhteydetön kieli
This article is licensed under the GNU Free Documentation License.
It uses material from the
"Context-free language".
Home Page • arts • business • computers • games • health • hospitals • home • kids & teens • news • physicians • recreation• reference • regional • science • shopping • society • sports • world