bc: remove "empty expression" check/message, parsing fails in these cases anyway
function old new delta zbc_parse_expr 1848 1818 -30 Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
This commit is contained in:
parent
132d7c098b
commit
a1698a15dc
@ -4780,9 +4780,10 @@ static BC_STATUS zbc_parse_expr(uint8_t flags)
|
|||||||
break;
|
break;
|
||||||
case BC_LEX_RPAREN:
|
case BC_LEX_RPAREN:
|
||||||
dbg_lex("%s:%d LEX_RPAREN", __func__, __LINE__);
|
dbg_lex("%s:%d LEX_RPAREN", __func__, __LINE__);
|
||||||
if (p->lex_last == BC_LEX_LPAREN) {
|
//why?
|
||||||
RETURN_STATUS(bc_error("empty expression"));
|
// if (p->lex_last == BC_LEX_LPAREN) {
|
||||||
}
|
// RETURN_STATUS(bc_error_at("empty expression"));
|
||||||
|
// }
|
||||||
if (bin_last || prev == XC_INST_BOOL_NOT)
|
if (bin_last || prev == XC_INST_BOOL_NOT)
|
||||||
RETURN_STATUS(bc_error_bad_expression());
|
RETURN_STATUS(bc_error_bad_expression());
|
||||||
if (nparens == 0) {
|
if (nparens == 0) {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user