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

What an expression is evaluated against. More...

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

Public Attributes

std::string text
 
size_t index = 0
 
std::string spec
 
std::string flags
 
std::string width
 
std::optional< std::string > precision
 
char conversion = 0
 

Detailed Description

What an expression is evaluated against.

bound is the first value of each stream the expression mentions, keyed by the syntax node that mentioned it. Keying on the node rather than rewriting the tree is what lets the AST stay immutable and shared: the Python reference replaced each resolved name with a RefValue node, which a tree handed across a language boundary cannot do.

Member Data Documentation

◆ conversion

char a11::flow::FormatPart::conversion = 0

◆ flags

std::string a11::flow::FormatPart::flags

◆ index

size_t a11::flow::FormatPart::index = 0

◆ precision

std::optional<std::string> a11::flow::FormatPart::precision

◆ spec

std::string a11::flow::FormatPart::spec

◆ text

std::string a11::flow::FormatPart::text

◆ width

std::string a11::flow::FormatPart::width

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