|
A11 (C++ runtime)
Native C++ implementation of the A11 streaming action runtime
|
Classes | |
| struct | Capture |
| What one hole took: a view into the subject that was matched. More... | |
| struct | Compiled |
| A pattern, or what is wrong with the text it was written as. More... | |
| struct | Hole |
| One capture position in a pattern. More... | |
| struct | Pattern |
| A compiled pattern: literals and holes, in the order they were written. More... | |
Enumerations | |
| enum class | HoleType { kString , kInt , kNumber , kBool , kWord , kLine , kRest , kDuration , kTime , kJson } |
Literal text and named holes used by match, such as age={age:int}. More... | |
Functions | |
| std::string_view | HoleTypeName (HoleType type) |
| std::optional< HoleType > | HoleTypeFromName (std::string_view name) |
| The type that name spells, or nothing where it is not one of them. | |
| Compiled | Compile (std::string_view text) |
| Compile a pattern, saying what is wrong rather than throwing. | |
| std::optional< std::vector< Capture > > | Match (const Pattern &pattern, std::string_view subject) |
Match pattern anywhere in subject, taking the earliest fit. | |
|
strong |
Literal text and named holes used by match, such as age={age:int}.
Matches search the input. Holes capture nonempty text and stay on one line unless their type permits line breaks. Captures retain text for decoding. What a hole reads its text as, and how much of it a hole may take.
| Compiled a11::flow::pattern::Compile | ( | std::string_view | text | ) |
Compile a pattern, saying what is wrong rather than throwing.
| std::optional< HoleType > a11::flow::pattern::HoleTypeFromName | ( | std::string_view | name | ) |
The type that name spells, or nothing where it is not one of them.
| std::string_view a11::flow::pattern::HoleTypeName | ( | HoleType | type | ) |