add test for nested functions

This commit is contained in:
pantor committed 2020-08-04 23:27:46 +02:00
1 parent 222fc960be
commit 23e768403e
3 files changed
+18 -4

No files matched your search

+5 -2
View File
@@ -3000,10 +3000,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: