7#include "skeleton_node.hpp"
9namespace hi::inline
v1 {
12 statement_vector children;
26 if (ssize(children) > 0) {
27 children.back()->left_align();
30 for (
hilet &child : children) {
31 child->post_process(context);
38 return evaluate_children(context, children);
41 throw operation_error(std::format(
"{}: Could not evaluate.\n{}", location, e.
what()));
47 hilet children_str = transform<std::vector<std::string>>(children, [](
hilet &x) {
50 return std::format(
"<top {}>", join(children_str));
#define hilet
Invariant should be the default for variables.
Definition utility.hpp:23
DOXYGEN BUG.
Definition algorithm.hpp:13
A dynamic data type.
Definition datum.hpp:219
Definition formula_evaluation_context.hpp:15
Definition formula_post_process_context.hpp:19
Definition parse_location.hpp:18
Definition skeleton_node.hpp:16
Definition skeleton_top_node.hpp:11
datum evaluate(formula_evaluation_context &context) override
Evaluate the template.
Definition skeleton_top_node.hpp:35
bool append(std::unique_ptr< skeleton_node > x) noexcept override
Append a template-piece to the current template.
Definition skeleton_top_node.hpp:18