Professional Documents
Culture Documents
Compiler Tutorial 9
Compiler Tutorial 9
Design
CSCI415: Tutorial 9
Semantic Analysis
Semantic Analysis
• int x= 3+2.5
• Will this line of code produce an error?
Semantic Analysis
• A semantic analyzer checks the source program for semantic errors and
collects the type information for the code generation.