0 votes 0 votes Translate the arithmetic expression $a + -(b + c)$ into: A syntax tree. Quadruples. Triples. Indirect triples Compiler Design ullman compiler-design three-address-code intermediate-code descriptive + – admin asked Sep 7, 2019 admin 11.1k views answer comment Share Follow See 1 comment See all 1 1 comment reply Brock Sran commented May 14, 2022 reply Follow Share I’m confused regarding the direction of arrows. In some books they are pointing downwards while in this question I observed that arrows are pointing upwards. Someone please clarify my doubt. 0 votes 0 votes Please log in or register to add a comment.
5 votes 5 votes Syntax Tree Quadruples operator Argument1 Argument2 Result 0 + b c t1 1 unary minus t1 t2 2 + a t2 t3 Triples operator Argument1 Argument2 0 + b c 1 unary minus (0) 2 + a (1) Indirect Triples 0 (0) 1 (1) 2 (2) aditi19 answered Oct 10, 2019 aditi19 comment Share Follow See all 0 reply Please log in or register to add a comment.