Semantic analysis is phase of compiler design where the program is checked for its correctness.
Implemented in ast.h
file.
Symbol table is implemented in sym.h
file. It is a hash table with chaining. It is implemented using unordered_map
from unordered_map
library.
Semantic analyzer is implemented in traversal.h
file.
run make test
to run the tests.