Question: Q4: Consider the grammar: S+ 'I do not' Verb 'I do not' Verb Link Verb Link 'or' l'nore Verb 'cheat' | 'lie' | a) Is

Q4: Consider the grammar: S+ 'I do not' Verb 'I do not' Verb Link Verb Link 'or' l'nore Verb 'cheat' | 'lie' | a) Is this a regular grammar? b) Is this a context free grammar? c) How many production rules it has? d) Is it recursive? If yes on what side? e) Is it ambiguous? Why? f) Produce the parse tree and leftmost derivations for the following inputs: I do not cheat I do not cheat nor lie or cheat 25pt
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
