Fix lexer to handle malformed expressions properly
Add row, col to exceptions