add test for nested functions

This commit is contained in:
pantor
2020-08-04 23:27:46 +02:00
parent 222fc960be
commit 23e768403e
3 changed files with 18 additions and 4 deletions
+5 -2
View File
@@ -288,10 +288,13 @@ class Parser {
func->callback = function_data.callback;
}
function_stack.pop();
if (operator_stack.empty()) {
throw_parser_error("internal error at function " + func->name);
}
current_expression_list->rpn_output.emplace_back(operator_stack.top());
operator_stack.pop();
function_stack.pop();
}
}
default: