|
REAL
Regular Expression Algorithmic Library — constexpr C++20 regex
|
A parsed pattern: the node pool plus side tables. More...
#include <ast.hpp>
Public Attributes | |
| std::vector< ast_node > | nodes |
| The node pool; root indexes it. | |
| std::vector< class_def > | classes |
| Character classes as written, before negation. | |
| std::vector< named_group > | names |
| 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. | |
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).