deleted main2 and added illegal escape checking in lexer