In the following grammar X :: = X⊕Y / Y Y :: = Z*Y / Z Z :: = id Which of the…

PYQ GATE 1997

In the following grammar

X :: = X⊕Y / Y

Y :: = Z*Y / Z

Z :: = id

Which of the following is true?

  1. A.
    '⊕' is left associative while '*' is right associative

  2. B.
    Both '⊕' and '*' are left associative

  3. C.
    '⊕' is right associative while '*' is left associative

  4. D.
     None of the above

Attempted by 147 students.

Sign up free to check your answer

Sign up free

Explore the full course: Compiler Design

Loading lesson…