What will be the Abstract Syntax Tree for the above Parse Tree?
A
No worries! We‘ve got your back. Try BYJU‘S free classes today!
B
Right on! Give the BNAT exam to get a 100% scholarship for BYJUS courses
C
No worries! We‘ve got your back. Try BYJU‘S free classes today!
D
No worries! We‘ve got your back. Try BYJU‘S free classes today!
Open in App
Solution
The correct option is B Abstract Syntax Tree is short representation of Parse Tree. AST contain leaf node as operand and non leaf node as operand. Parentheses, commas, semicolons can be ommited is AST.