Slide 2.1: Programming language syntax
Slide 2.3: The Chomsky hierarchy (cont.)
Home

The Chomsky Hierarchy


Chomsky classified languages according to the complexity of their grammars and the power of the algorithms needed to recognize them:


Terminology of a grammar includes: Type-3 Grammars: Regular Grammars
They are the most restrictive grammars allow only a terminal or a terminal followed by one nonterminal on the right side—that is, rules of the form A grammar describing binary numerals such as 0011 and 101 can be designed using the format of a regular grammar:
   <binary> ::= 0 | 1 | 0 <binary> | 1 <binary>