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
 Optional max n bound; absent for a condition-only loop.
 
std::vector< NodePtr > body
 
NodePtr termination
 Optional postcondition, resolved in the iteration scope.
 
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
 
Location extent
 Full source extent and transparent grouping, for native edits.
 
std::vector< Location > groups
 

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

Optional max n bound; absent for a condition-only loop.

◆ start

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

◆ termination

NodePtr a11::flow::syntax::Repeat::termination

Optional postcondition, resolved in the iteration scope.

◆ variable

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

Empty where the repeat carries nothing.


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