Fix nested function (#159)

* switched order in token::kind::id of function and operator behavior

* add tests

* fixed nested function order

* created single include

Co-authored-by: pantor <lars.berscheid@online.de>
This commit is contained in:
DeiRex75
2020-08-04 23:20:37 +02:00
committed by GitHub
parent b141129bda
commit 222fc960be
2 changed files with 6 additions and 0 deletions

View File

@@ -289,6 +289,9 @@ class Parser {
}
function_stack.pop();
current_expression_list->rpn_output.emplace_back(operator_stack.top());
operator_stack.pop();
}
}
default:

View File

@@ -3001,6 +3001,9 @@ class Parser {
}
function_stack.pop();
current_expression_list->rpn_output.emplace_back(operator_stack.top());
operator_stack.pop();
}
}
default: