correct parse/lex error handling