What is a context-free language?

Formal Languages Questions



80 Short 63 Medium 57 Long Answer Questions Question Index

What is a context-free language?

A context-free language is a type of formal language that can be generated by a context-free grammar. It is a set of strings composed of terminal symbols that can be derived from a start symbol using production rules, where the left-hand side of each production rule consists of a single non-terminal symbol. In other words, a context-free language is a language that can be described by a context-free grammar.