There are several problem may occurs unexpected issue, need to implement a proper diagnostic system in order to terminate entire compilation as long as there are something went wrong.
[] Use object class to store diagnostic info.
[] Terminate when there are problems in lexing / parsing / analyzing / emitting phase.
There are several problem may occurs unexpected issue, need to implement a proper diagnostic system in order to terminate entire compilation as long as there are something went wrong.