7#include "formula_node.hpp"
8#include "../macros.hpp"
10hi_export_module(hikogui.formula.formula_call_node);
12namespace hi {
inline namespace v1 {
27 lhs->resolve_function_pointer(
context);
28 for (
auto &
arg : args) {
49 throw parse_error(std::format(
"Function definition does not have a name, got {}\n{}", *lhs, e.
what()));
52 for (hilet &
arg : args) {
56 throw parse_error(std::format(
"Definition of function {}() has a non-name argument {}\n{}", *lhs, *
arg, e.
what()));
65 auto s = std::format(
"({}(", *lhs);
67 for (hilet &
arg : args) {
DOXYGEN BUG.
Definition algorithm.hpp:16
geometry/margins.hpp
Definition lookahead_iterator.hpp:5
constexpr Out narrow_cast(In const &rhs) noexcept
Cast numeric values without loss of precision.
Definition cast.hpp:377
A dynamic data type.
Definition datum.hpp:212
A temporary node used during parsing.
Definition formula_arguments.hpp:16
Definition formula_call_node.hpp:14
std::vector< std::string > get_name_and_argument_names() const override
Get name and argument names from a function declaration.
Definition formula_call_node.hpp:42
datum evaluate(formula_evaluation_context &context) const override
Evaluate an rvalue.
Definition formula_call_node.hpp:33
void post_process(formula_post_process_context &context) override
Resolve function and method pointers.
Definition formula_call_node.hpp:25
Definition formula_evaluation_context.hpp:18
Definition formula_node.hpp:21
Definition formula_post_process_context.hpp:237
Exception thrown during parsing on an error.
Definition exception_intf.hpp:47