if (a+4 < b*5)without additional parentheses. Show the grammar, and also to code to build the relevant tree. Would you need a new node type, or could you reuse an existing one?
stmt ::= expr SEMI;
expr ::= NUM | op expr expr;
op ::= PLUS | MINUS | TIMES | DIVIDE;
+ 2 - 3 + 4 5 ;
+ - + 2 3 4 5 ;3a. what does the parse tree look like for each input?