7#include "skeleton_node.hpp"
9namespace hi::inline v1 {
12 statement_vector children;
30 if (ssize(children) > 0) {
31 children.back()->left_align();
34 post_process_expression(context, *expression, location);
35 for (
hilet &child : children) {
36 child->post_process(context);
45 while (evaluate_formula_without_output(context, *expression, location)) {
46 context.loop_push(loop_count++);
47 auto tmp = evaluate_children(context, children);
51 }
else if (tmp.is_continue()) {
53 }
else if (!tmp.is_undefined()) {
64 s += to_string(*expression);
#define hilet
Invariant should be the default for variables.
Definition required.hpp:23
A dynamic data type.
Definition datum.hpp:209
Definition formula_evaluation_context.hpp:16
void set_output_size(ssize_t new_size) noexcept
Set the size of the output.
Definition formula_evaluation_context.hpp:68
ssize_t output_size() const noexcept
Get the size of the output.
Definition formula_evaluation_context.hpp:60
Definition formula_post_process_context.hpp:19
Definition parse_location.hpp:17
Definition skeleton_node.hpp:16
Definition skeleton_while_node.hpp:11
datum evaluate(formula_evaluation_context &context) override
Evaluate the template.
Definition skeleton_while_node.hpp:40
bool append(std::unique_ptr< skeleton_node > x) noexcept override
Append a template-piece to the current template.
Definition skeleton_while_node.hpp:22