1. What is semantic analysis? Give some examples of errors that are detected during semantic analysis. 2. What are the main tasks involved in semantic analysis? How is it different from syntax...


1. What is semantic analysis? Give some examples of errors that are detected during semantic analysis.


2. What are the main tasks involved in semantic analysis? How is it different from syntax analysis? Illustrate with an example.


3. Explain the terms: (a) decorated parse tree, (b) dependency graph, (c) inherited and synthesised attributes. Illustrate with examples.


4. How do we evaluate semantic rules in a syntax-directed defi nition? What are the common methods used for evaluating semantic rules?



May 18, 2022
SOLUTION.PDF

Get Answer To This Question

Submit New Assignment

Copy and Paste Your Assignment Here