A11 (C++ runtime)
Native C++ implementation of the A11 streaming action runtime
Loading...
Searching...
No Matches
a11::flow::syntax::Repeat Struct Reference

repeat [name = expr] [max n] { ... }. More...

#include <cpp/a11/flow/syntax.h>

Inheritance diagram for a11::flow::syntax::Repeat:
[legend]

Public Attributes

Word variable
 Empty where the repeat carries nothing.
 
NodePtr start
 
std::optional< int > max_iterations
 max n, where one was written.
 
std::vector< NodePtr > body
 
std::vector< Word > after
 What has to have finished before the loop starts. See ForEach::after.
 
- Public Attributes inherited from a11::flow::syntax::Node
NodeKind kind = NodeKind::kError
 
Location location
 

Additional Inherited Members

- Public Member Functions inherited from a11::flow::syntax::NodeOf< NodeKind::kRepeat >
 NodeOf ()
 
- Public Member Functions inherited from a11::flow::syntax::Node
virtual ~Node ()=default
 
- Static Public Attributes inherited from a11::flow::syntax::NodeOf< NodeKind::kRepeat >
static constexpr NodeKind kNodeKind
 

Detailed Description

repeat [name = expr] [max n] { ... }.

Member Data Documentation

◆ after

std::vector<Word> a11::flow::syntax::Repeat::after

What has to have finished before the loop starts. See ForEach::after.

◆ body

std::vector<NodePtr> a11::flow::syntax::Repeat::body

◆ max_iterations

std::optional<int> a11::flow::syntax::Repeat::max_iterations

max n, where one was written.

Nothing means no bound: the loop runs until its until/while says to stop.

There is no implicit safety bound: only an author-written max may end a repeat independently of its condition.

◆ start

NodePtr a11::flow::syntax::Repeat::start

◆ variable

Word a11::flow::syntax::Repeat::variable

Empty where the repeat carries nothing.


The documentation for this struct was generated from the following file: