Computer Science, asked by kamnakamnasingh2362, 1 year ago

Convert si=p*t*r/100into phases of compiler

Answers

Answered by 11dit035p7fms9
1
si=p*t*r/100 will be converted into token's

id1=id2*id3*id4/num


then to check syntax parse tree will be made

=
si. *
p. *
t. *
r. /
100

visualize this as tree with right and left node
traversing it in order you will again get id1=id2*id3*id4/num


after this the whole code together will be evaluated if more


intermediate code will be generated


and then finally machine level code.
Similar questions