0
15kviews
Explain with an example the Chomsky hierarchy.
1 Answer
written 7.8 years ago by |
Chomsky hierarchy:
The Chomsky hierarchy classifies the formal language in the four types:
Type 0: Unrestricted grammar
Type 1: Restricted grammar (Context-sensitive)
Type 2: Context free grammar
Type 3: Regular grammar
The formal languages take the form of productions, like α → β
Fig 1. Chomsky hierarchy
Fig 1 describes …