Question: A. Using the parenthesis grammar below draw the parse tree for the following input strings i. (OO. [2 Marks] ii. (O) (O) [3 Marks] iii.
A. Using the parenthesis grammar below draw the parse tree for the following input strings i. (OO. [2 Marks] ii. (O) (O) [3 Marks] iii. ( ( ( 2 2 ) ). Marks] List List Pair | Pair Pair( Pair O. ( [3 B. State the two different behaviours of compilers when it comes to error recovery
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
