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 from a leading (?ims).
 
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).

Definition at line 163 of file ast.hpp.

Member Data Documentation

◆ classes

std::vector<class_def> real::detail::ast::classes

Character classes as written, before negation.

Definition at line 166 of file ast.hpp.

◆ group_count

std::int32_t real::detail::ast::group_count {}

Number of capturing groups.

Definition at line 169 of file ast.hpp.

◆ inline_flags

flags real::detail::ast::inline_flags {flags::none}

Flags from a leading (?ims).

Definition at line 168 of file ast.hpp.

◆ names

std::vector<named_group> real::detail::ast::names

Named capture groups.

Definition at line 167 of file ast.hpp.

◆ nodes

std::vector<ast_node> real::detail::ast::nodes

The node pool; root indexes it.

Definition at line 165 of file ast.hpp.

◆ root

std::int32_t real::detail::ast::root {-1}

Index of the root node.

Definition at line 170 of file ast.hpp.


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