Question: 2. Draw the parse tree and the AST for the following PL/O code (nested functions and statements). function addtwo(x: int): int var result_a: int function
2. Draw the parse tree and the AST for the following PL/O code (nested functions and statements). function addtwo(x: int): int var result_a: int function addtwo_nested(): int var result b: int begin result, b :# x + 2 return result b end begin result a addtwo_nested) return result a end addtwo(2)
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
