A11 (C++ runtime)
Native C++ implementation of the A11 streaming action runtime
Loading...
Searching...
No Matches
pattern.cc File Reference
#include "a11/flow/pattern.h"
#include <cstddef>
#include <optional>
#include <string>
#include <string_view>
#include <vector>
#include <absl/container/flat_hash_set.h>
#include <absl/strings/ascii.h>
#include <absl/strings/match.h>
#include <absl/strings/str_cat.h>

Namespaces

namespace  a11
 
namespace  a11::flow
 
namespace  a11::flow::pattern
 

Functions

std::string_view a11::flow::pattern::HoleTypeName (HoleType type)
 
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.
 
Compiled a11::flow::pattern::Compile (std::string_view text)
 Compile a pattern, saying what is wrong rather than throwing.
 
std::optional< std::vector< Capture > > a11::flow::pattern::Match (const Pattern &pattern, std::string_view subject)
 Match pattern anywhere in subject, taking the earliest fit.