Solved

Consider the Grammar Defined by the Following Production Rules, with Twooperators

Question 9

Multiple Choice

Consider the grammar defined by the following production rules, with twooperators ? and +
S --> T * P
T --> U | T * U
P --> Q + P | Q
Q --> Id
U --> Id
Which one of the following is TRUE?


A) + is left associative, while ? is right associative
B) + is right associative, while ? is left associative
C) Both + and ? are right associative
D) Both + and ? are left associative

Correct Answer:

verifed

Verified

Unlock this answer now
Get Access to more Verified Answers free of charge

Related Questions