Jump to content

Formal Languages and Logic/Context-free languages

From Wikibooks, open books for an open world

Definition (context-free grammar):

A context-free grammar is a Chomsky grammar such that all productions are of the form

,

where and .

Definition (context-free language):

A context-free language is a language over an alphabet so that there exists a context-free Chomsky grammar that accepts precisely .

Definition (Dyck language):

Let . The Dyck language of order is the formal languange

whose alphabet is .