7#include "skeleton_node.hpp"
8#include "../macros.hpp"
13 statement_vector children;
25 void post_process(formula_post_process_context &context)
override
27 if (ssize(children) > 0) {
28 children.back()->left_align();
31 for (hilet &child : children) {
32 child->post_process(context);
36 datum
evaluate(formula_evaluation_context &context)
override
39 return evaluate_children(context, children);
42 throw operation_error(std::format(
"{}: Could not evaluate.\n{}", location, e.
what()));
48 hilet children_str = transform<std::vector<std::string>>(children, [](hilet &x) {
51 return std::format(
"<top {}>", join(children_str));
DOXYGEN BUG.
Definition algorithm.hpp:16
constexpr Out narrow_cast(In const &rhs) noexcept
Cast numeric values without loss of precision.
Definition cast.hpp:377
Definition parse_location.hpp:18
Definition skeleton_node.hpp:16
Definition skeleton_top_node.hpp:12
datum evaluate(formula_evaluation_context &context) override
Evaluate the template.
Definition skeleton_top_node.hpp:36
bool append(std::unique_ptr< skeleton_node > x) noexcept override
Append a template-piece to the current template.
Definition skeleton_top_node.hpp:19