Question: COMPILERS Question 2) Consider the following grammar describing Lisp arithmetic: S- E symbol, E is expression function, L is a list a list number n

COMPILERS Question
2) Consider the following grammar describing Lisp arithmetic: S- E symbol, E is expression function, L is a list a list number n or an expression E E ->(FL) L -LI |I I ->n | E // S is start // F is math // I is an item in // an item is a Find FIRST, FOLLOW and LR(0) sets for this grammar. Is the grammar LR(0)? Is it SLR
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
