Aleph-w 3.0
A C++ Library for Data Structures and Algorithms
Loading...
Searching...
No Matches
Aleph::Interpreter_Execution_Result Struct Reference

Result of evaluating one expression, statement, module, or call. More...

#include <Interpreter_Runtime.H>

Collaboration diagram for Aleph::Interpreter_Execution_Result:
[legend]

Public Member Functions

bool ok () const noexcept
 Returns whether this result represents a runtime failure.
 
bool has_control_flow () const noexcept
 Returns whether this result carries non-local control flow.
 

Public Attributes

Interpreter_Control_Flow_Kind flow = Interpreter_Control_Flow_Kind::None
 Control-flow outcome.
 
Interpreter_Value value = Interpreter_Value::make_unit()
 Produced runtime value when relevant.
 
Interpreter_Runtime_Error error
 Structured runtime failure when flow == Runtime_Error.
 

Detailed Description

Result of evaluating one expression, statement, module, or call.

Definition at line 705 of file Interpreter_Runtime.H.

Member Function Documentation

◆ has_control_flow()

bool Aleph::Interpreter_Execution_Result::has_control_flow ( ) const
inlinenoexcept

Returns whether this result carries non-local control flow.

Definition at line 720 of file Interpreter_Runtime.H.

References Aleph::blossom_maximum_cardinality_matching(), Aleph::Break, Aleph::Continue, flow, and Aleph::Return.

◆ ok()

Member Data Documentation

◆ error

Interpreter_Runtime_Error Aleph::Interpreter_Execution_Result::error

◆ flow

◆ value


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