REAL
Regular Expression Algorithmic Library — constexpr C++20 regex
Loading...
Searching...
No Matches
real::detail::ast Struct Reference

A parsed pattern: the node pool plus side tables. More...

#include <ast.hpp>

Public Attributes

std::vector< ast_nodenodes
 The node pool; root indexes it.
 
std::vector< class_defclasses
 Character classes as written, before negation.
 
std::vector< named_groupnames
 Named capture groups.
 
flags inline_flags {flags::none}
 Flags a leading (?imsxaU) group ADDED (OR-only, hence the companion below).
 
flags inline_removed {flags::none}
 Flags a leading (?flags-flags) group REMOVED; the caller clears these after OR-ing inline_flags.
 
std::int32_t group_count {}
 Number of capturing groups.
 
std::int32_t root {-1}
 Index of the root node.
 

Detailed Description

A parsed pattern: the node pool plus side tables.

Resource caps used during parsing and later Thompson unrolling are centralized in config.hpp (max_repeat_count, max_group_count, max_nesting_depth, max_program_size).


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