|
A11 (C++ runtime)
Native C++ implementation of the A11 streaming action runtime
|
repeat [name = expr] [max n] { ... }.
More...
#include <cpp/a11/flow/syntax.h>
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 |
repeat [name = expr] [max n] { ... }.
| std::vector<Word> a11::flow::syntax::Repeat::after |
What has to have finished before the loop starts. See ForEach::after.
| std::vector<NodePtr> a11::flow::syntax::Repeat::body |
| 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.
| NodePtr a11::flow::syntax::Repeat::start |
| Word a11::flow::syntax::Repeat::variable |
Empty where the repeat carries nothing.