add line numbers to parser
support some undefined symbol errors and basic type errors in the checker