Site icon i2tutorials

Compiler Design-Semantic Phase Errors

Semantic Phase Errors

 

Semantic Errors are recognized during the Semantic Phase. 

 

Some of the semantic errors are:

 

Example:

Int a;

Float b;

a=b;

Here a and b are different data types and are not compatible.

 

Error Recovery

 

Reference Link

Semantic Phase Errors

Exit mobile version