Question: Need help with numver 2 thank you. Question 2 : Let G be the following context-free grammar: A id = E E E + T
Need help with numver 2 thank you.
Question 2 :
Let G be the following context-free grammar: A id = E
E E + T | E - T | T
T id | num | ( E ) | p(E)
a/ Provide a left-most derivation of the string a = p(a + (c - 3)) and draw the parse tree.
b/ Provide a right-most derivation of the string a = p(a + (c - 3)) and draw the parse tree.
c / Is this grammar unambigious? Explain
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
