reglibcpp
2.0.0
A C++ implementation of models for regular languages
|
Represents the table entries as binary trees. More...
Public Member Functions | |
pair< unique_ptr< tree >, unique_ptr< tree > > | findNextPair (token symbol, size_t row, size_t diag, parser const *p) |
Finds the child trees that can be derived from a given entry. More... | |
tree (size_t row, size_t diag, parser const *p) | |
Initializes a tree with a given table entry as root. More... | |
exptr | operator() (bool optimized, bool aggressive) |
Gives the RE encoded in this tree. More... | |
Public Attributes | |
parser const * | p |
Points to the parser this tree belongs to. More... | |
token | symbol |
This tree's root symbol. More... | |
pair< unique_ptr< tree >, unique_ptr< tree > > | children |
Trees with the symbols of the entry's derived pair as root. More... | |
Represents the table entries as binary trees.
Definition at line 580 of file expression.cpp.
|
inline |
Initializes a tree with a given table entry as root.
row | the row of the entry |
diag | the diagonal of the entry |
p | pointer to the calling parser |
Definition at line 618 of file expression.cpp.
|
inline |
Finds the child trees that can be derived from a given entry.
symbol | the entry's symbol |
row | the row of the entry |
diag | the diagonal of the entry |
p | points to this tree's owning parser |
Definition at line 595 of file expression.cpp.
|
inline |
Gives the RE encoded in this tree.
Definition at line 631 of file expression.cpp.
pair<unique_ptr<tree>, unique_ptr<tree> > reg::expression::parser::tree::children |
Trees with the symbols of the entry's derived pair as root.
Definition at line 583 of file expression.cpp.
parser const* reg::expression::parser::tree::p |
Points to the parser this tree belongs to.
Definition at line 581 of file expression.cpp.
token reg::expression::parser::tree::symbol |
This tree's root symbol.
Definition at line 582 of file expression.cpp.