Write the steps to construct syntax tree using the semantic rules. Construct a syntax tree for the following SDD :
Production rule
Semantic rules
E.node = new Node (‘+’, .node, T.node)
E.node = new Node (‘–’, .node, T.node)
E.node = T.node
T.node = E.node
T.node = new Leaf (id, id.entry)
T.node = new Leaf(num, num.val).
Answers
Answered by
0
jfsvloteypptwwdikvdyokdvmidgmk
Similar questions