Question: for the given BNF above, convert it into a set of First rules. for example First(x) = { } anything between single quotation is a

 for the given BNF above, convert it into a set of

for the given BNF above, convert it into a set of First rules.

for example

First(x) = { }

anything between single quotation is a terminal symbol

id and number are also terminal symbols

program ::- block block ::= declarat ion-list statement-list declarationlist ::- declaration statement.list : :- statement declaration ::- ' C' id ','id statement ::-assignment | print | do I if print::-'!' assignment ::- ref.id '-' expr r!expr do ::-', quarded.comman multop

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!