reglibcpp
1.0.0
(Naïve) 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 485 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 520 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 501 of file expression.cpp.
|
inline |
Gives the RE encoded in this tree.
Definition at line 533 of file expression.cpp.
Trees with the symbols of the entry's derived pair as root.
Definition at line 488 of file expression.cpp.
parser const* reg::expression::parser::tree::p |
Points to the parser this tree belongs to.
Definition at line 486 of file expression.cpp.
token reg::expression::parser::tree::symbol |
This tree's root symbol.
Definition at line 487 of file expression.cpp.