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

[try] { ... } – a block of statements that runs as one thing. More...

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

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

Public Attributes

bool tolerant = false
 
std::vector< NodePtr > body
 
- 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::kBlock >
 NodeOf ()
 
- Public Member Functions inherited from a11::flow::syntax::Node
virtual ~Node ()=default
 
- Static Public Attributes inherited from a11::flow::syntax::NodeOf< NodeKind::kBlock >
static constexpr NodeKind kNodeKind
 

Detailed Description

[try] { ... } – a block of statements that runs as one thing.

Statements in a flow body run concurrently. A block groups their outcome. Its own statements remain concurrent, and a condition blocks only statements within the block. A bound block yields a status. With try, the flow handles a block failure; otherwise the failure ends the flow.

Member Data Documentation

◆ body

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

◆ tolerant

bool a11::flow::syntax::Block::tolerant = false

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