What constitutes semantic analysis apart from type checking?

167 Views Asked by At

I am writing a compiler from Java 1.0 to x86. I have built the Abstract Syntax Tree (using lex + yacc) and the symbol table. Now, in order to do semantic analysis I plan on traversing the AST in a Depth-first order , type-checking each syntactic construct as I reach its node while also performing necessary type conversions. However, before proceeding to intermediate code generation, what more should be done in the semantic analysis phase.

0

There are 0 best solutions below