Question: EXAMPLE 3 . 1 4 The grammar G = ( { S , A , B } , { a , b } , S
EXAMPLE
The grammar with productions
is not regular. Although every production is either in rightlinear or leftlinear form, the grammar itself is neither rightlinear nor leftlinear, and therefore is not regular. The grammar is an example of a linear grammar. A linear grammar is a grammar in which at most one variable can occur on the right side of any production, without restriction on the position of this variable. Clearly, a regular grammar is always linear, but not all linear grammars are regular.
Step by Step Solution
There are 3 Steps involved in it
1 Expert Approved Answer
Step: 1 Unlock
Question Has Been Solved by an Expert!
Get step-by-step solutions from verified subject matter experts
Step: 2 Unlock
Step: 3 Unlock
