7#include "skeleton_node.hpp"
9namespace hi::inline
v1 {
11struct skeleton_while_node final : skeleton_node {
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);
44 ssize_t loop_count = 0;
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);
DOXYGEN BUG.
Definition algorithm.hpp:13
T transform(const U &input, F operation)
Transform an input container to the output container.
Definition algorithm.hpp:21
A dynamic data type.
Definition datum.hpp:223
Definition formula_evaluation_context.hpp:15
void set_output_size(ssize_t new_size) noexcept
Set the size of the output.
Definition formula_evaluation_context.hpp:67
ssize_t output_size() const noexcept
Get the size of the output.
Definition formula_evaluation_context.hpp:59
Definition formula_post_process_context.hpp:19
Definition parse_location.hpp:18
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