Question: File Edit View Tools Help Objectives create BNF rules for an LL ( 1 ) parser for a language similar to what we did in

File Edit View Tools Help
Objectives
create BNF rules for an LL (1) parser for a language similar to what we did in class for algebra expressions.
enter the grammar into the BNFParser python program.
Directions
Here is the grammar from page 190 of the textbook.
(sentence) : :=(simple-sentence :)[ and (: simple-sentence :)]dots
(simple-sentence) ::=(: nout-part :)(: verb-part :)
(: noun-part :)::=(: article :)(: noun :)[ who (: verb-part :)]dots
(: verb-part :)::=(: intransitive-verb :)|(transitive-verb :)(: noun-part :) )|
article
Transform the grammar into an equivalent grammar that can be used with LL (1) parser. As we did in class. Look at the rules in the
BNFParser.py program.
A rule name must be enclosed in angle brackets.
Valid examples are >(:A:)|in|
 File Edit View Tools Help Objectives create BNF rules for an

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!