made union of lexer error data, parser error data and sem_calc error data of main error data structure