Jump to content

Formal Languages and Logic/Chomsky grammars

From Wikibooks, open books for an open world

Definition (Chomsky grammar):

A Chomsky grammar is a quartuple , where is an alphabet, is a set such that , and .

Definition (terminal symbol):

Let be a Chomsky grammar. A nonterminal symbol of is an element of .

Definition (nonterminal symbol):

Let be a Chomsky grammar. A nonterminal symbol of is an element of .

Definition (production):

Let be a Chomsky grammar. A production of is an element of .

Productions will be denoted as instead of the tuple notation .

Definition (start symbol):

Let be a Chomsky grammar. Then is the start symbol of .

Definition (language generated by a Chomsky grammar):

Let be a Chomsky grammar. Then the language generated by is the language