7#include "skeleton_node.hpp"
8#include "../macros.hpp"
10namespace hi::inline
v1 {
12struct skeleton_top_node final : skeleton_node {
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()));
51 return std::format(
"<top {}>", join(children_str));
DOXYGEN BUG.
Definition algorithm.hpp:16
T transform(const U &input, F operation)
Transform an input container to the output container.
Definition algorithm.hpp:24
Definition parse_location.hpp:18
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