Fix bug in order of operations processing.
This commit is contained in:
parent
65071d47b3
commit
2823b0b66b
|
@ -476,7 +476,7 @@ libab_result _parse_expression(struct parser_state* state, libab_tree** store_in
|
|||
|
||||
while(result == LIBAB_SUCCESS && op_stack.tail &&
|
||||
_parser_match_is_op(op_stack.tail->data)) {
|
||||
libab_operator* other_operator = _parser_find_operator(state, new_token);
|
||||
libab_operator* other_operator = _parser_find_operator(state, op_stack.tail->data);
|
||||
|
||||
if(new_token->type == TOKEN_OP_PREFIX ||
|
||||
(operator->associativity == -1 &&
|
||||
|
|
Loading…
Reference in New Issue
Block a user