Fix bug in order of operations processing.

This commit is contained in:
Danila Fedorin 2018-02-26 13:51:37 -08:00
parent 65071d47b3
commit 2823b0b66b

View File

@ -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 &&