Question: please implement in LISP the grammar listed next. The execution of your code comes from executing (sentence). Each time that you execute (sentence), LISP generates

please implement in LISP the grammar listed next.

The execution of your code comes from executing (sentence). Each time that you execute (sentence), LISP generates a random sentence defined by the grammar.
(1) your LISP code,
(2) sample executions of (sentence),
and (3) some comments on your implementation.
S AB ACD B7 E A V = {S, A, B, C, D, E} y the la N= {man, ball woman, Dt manl ball woman table that Et hit took / Saw / liked table, took, saw liked} Sentence Noun-Phrase t Verb Phrase Noun - Phrase - Article + Noun Verb-Phrase Verb + Noun-Phrase Article the , a Noun > man , ball, woman , table verb hit, took, saw, liked S AB ACD B7 E A V = {S, A, B, C, D, E} y the la N= {man, ball woman, Dt manl ball woman table that Et hit took / Saw / liked table, took, saw liked} Sentence Noun-Phrase t Verb Phrase Noun - Phrase - Article + Noun Verb-Phrase Verb + Noun-Phrase Article the , a Noun > man , ball, woman , table verb hit, took, saw, liked
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
