Question: please help me solve 3 and 4. i have provided the code as well. 3. Consider the attribute grammar for type checking of assignment statements
please help me solve 3 and 4. i have provided the code as well. 


3. Consider the attribute grammar for type checking of assignment statements given in the Supplement. a. Suppose typeLookup('a') = float, type Lookup('b') = long, and typeLookup(*c') = float Sketch the decorated parse tree for the following assignment statement: a = b + c b. According to the predicate for expressions given in the Supplement, is this assignment statement type-correct? Explain your answer. 4. Consider the (non-standard) grammar and denotational semantics for statement lists, statement pair lists, statement pairs, and assignment statements given in the Supplement Suppose the current state is s - {, ,
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
