wiz-icon
MyQuestionIcon
MyQuestionIcon
3004
You visited us 3004 times! Enjoying our articles? Unlock Full Access!
Question

Consider the grammar with the following translation rules and E as the start symbol.
EE1 #T{E. value = E1. value * T.value}| T{E. value = T.value}TT1 & F{T. value = T1.value + F.value}| F{T. value = F. value}Fnum{F. value =num. value}

Compute E. value for the root of the parse tree for the expression: 2 # 3 & 5 # 6 & 4.

A
200
No worries! We‘ve got your back. Try BYJU‘S free classes today!
B
180
No worries! We‘ve got your back. Try BYJU‘S free classes today!
C
40
No worries! We‘ve got your back. Try BYJU‘S free classes today!
D
160
Right on! Give the BNAT exam to get a 100% scholarship for BYJUS courses
Join BYJU'S Learning Program
CrossIcon