reglibcpp
2.0.0
A C++ implementation of models for regular languages
|
Private implementation details of DFAs. More...
Public Member Functions | |
impl () | |
Constructs private implementation object for a DFA accepting the empty language ∅. More... | |
impl (vector< char32_t > &&u32alphabet, vector< vector< size_t >> &&transitions, vector< string > &&labels, valarray< bool > &&accepting) | |
Constructs private implementation object with provided members. More... | |
Public Attributes | |
std::shared_ptr< nfa const > | equivalent |
Holds an equivalent NFA in case it is ever needed. More... | |
valarray< bool > | accepting |
A true value marks an index as belonging to an accept state. More... | |
vector< char32_t > | u32alphabet |
Represents the set of processable symbols. More... | |
vector< string > | alphabet |
Represents the set of processable symbols as UTF-8-encoded strings. More... | |
vector< string > | labels |
Stores the names of states. More... | |
vector< vector< size_t > > | transitions |
Stores the transition function as a table viz state index × symbol index → state index. More... | |
|
inline |
valarray<bool> reg::dfa::impl::accepting |
|
mutable |
vector<char32_t> reg::dfa::impl::u32alphabet |