A11 (C++ runtime)
Native C++ implementation of the A11 streaming action runtime
Loading...
Searching...
No Matches
interpreter.h File Reference

Running a .flow file as a program, from anywhere. More...

#include <memory>
#include <optional>
#include <string>
#include <vector>
#include <absl/status/status.h>
#include <absl/status/statusor.h>
#include <absl/time/time.h>
#include "a11/actions/registry.h"
#include "a11/flow/diagnostic.h"
#include "a11/flow/values.h"
#include "a11/net/wire_stream.h"
#include "sdk/flow/actions/policy.h"
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Classes

struct  a11::flow::interpreter::Source
 What to run: the source, and a name for it that diagnostics will quote. More...
 
struct  a11::flow::interpreter::RunOptions
 How to run it. More...
 
struct  a11::flow::interpreter::RunOutcome
 What came of it. More...
 

Namespaces

namespace  a11
 
namespace  a11::flow
 
namespace  a11::flow::interpreter
 

Functions

absl::Status a11::flow::interpreter::RegisterStandardLibrary (actions::ActionRegistry &registry, const sdk::flow::CapabilitiesPtr &capabilities, bool standard_streams)
 Registers the standard library on registry, under capabilities.
 
absl::StatusOr< RunOutcome > a11::flow::interpreter::Run (const Source &source, const RunOptions &options)
 Compiles source and runs its entry flow to completion.
 
absl::StatusOr< RunOutcome > a11::flow::interpreter::Check (const Source &source)
 Compiles source and says what its entry flow is, running nothing.
 
absl::StatusOr< std::string > a11::flow::interpreter::DescribeEntry (const Source &source)
 The entry flow's ports, as text a person reads. Used by --check.
 

Detailed Description

Running a .flow file as a program, from anywhere.

Run a Flow program against a host's action registry and capability policy. Host registrations take precedence over standard-library actions. The a11-flow-run command and Python binding call this API.