QUESTION 7: Consider the following program written in AC language discussed in the class. The tokens and grammar specifications are described in question 6. And the token specifications are described...


answer e please


QUESTION 7:<br>Consider the following program written in AC language discussed in the class. The tokens and grammar<br>specifications are described in question 6. And the token specifications are described below using regular<br>expression.<br>ih<br>fq<br>q= 5<br>h= 2<br>q = 10 - h + q - 1.3<br>$<br>A)Apply the lexical analyzer to the source program and find all tokens. [2]<br>B)Apply syntax analyzer to find both the resulting parse tree and AST [5]<br>C)Apply semantic analyzer to find the decorated AST [1]<br>D)Construct the parse table [2]<br>E) Apply code generator to find the object code in DC language [3]<br>

Extracted text: QUESTION 7: Consider the following program written in AC language discussed in the class. The tokens and grammar specifications are described in question 6. And the token specifications are described below using regular expression. ih fq q= 5 h= 2 q = 10 - h + q - 1.3 $ A)Apply the lexical analyzer to the source program and find all tokens. [2] B)Apply syntax analyzer to find both the resulting parse tree and AST [5] C)Apply semantic analyzer to find the decorated AST [1] D)Construct the parse table [2] E) Apply code generator to find the object code in DC language [3]

Jun 05, 2022
SOLUTION.PDF

Get Answer To This Question

Related Questions & Answers

More Questions »

Submit New Assignment

Copy and Paste Your Assignment Here