30 int num_intermediate_inputs) {
37 std::vector<::Token> tokens;
39 tokens =
::tokenize(postfix_expr, num_inputs, expr_mode,
40 num_intermediate_inputs);
41 }
catch (
const std::exception& e) {
42 throw std::runtime_error(
43 std::format(
"Line {}: Failed to tokenize postfix expression: {}",
48 for (
const auto& token : tokens) {
52 throw std::runtime_error(
53 std::format(
"Line {}: Stack underflow while processing '{}'",
int compute_postfix_stack_effect(const std::string &postfix_expr, PostfixMode mode, int line, int num_inputs, int num_intermediate_inputs)