reglibcpp
1.5.0
(Naïve) C++ implementation of models for regular languages
|
Private implementation details of DFAs. More...
Public Member Functions | |
pImpl () | |
Constructs private implementation object for a DFA accepting the empty language ∅. More... | |
pImpl (vector< char32_t > &alphabet, vector< vector< size_t >> &transitions, vector< string > &labels, valarray< bool > &accepting) | |
Constructs private implementation object with provided members. More... | |
Static Public Member Functions | |
static vector< valarray< bool > > | indistinguishableStates (vector< vector< size_t >> const &transitions, valarray< bool > const &accepting) |
Builds the table of indistinguishable states w.r.t. a transition function. More... | |
Public Attributes | |
valarray< bool > | accepting |
A true value marks an index as belonging to an accept state. More... | |
vector< char32_t > | alphabet |
Represents the set of processable symbols. More... | |
vector< string > | utf8Alphabet |
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 |
Constructs private implementation object for a DFA accepting the empty language ∅.
Definition at line 62 of file dfa.cpp.
|
inline |
Constructs private implementation object with provided members.
Definition at line 65 of file dfa.cpp.
|
inlinestatic |
Builds the table of indistinguishable states w.r.t. a transition function.
transitions | the transition function to base indistinguishability computation off |
accepting | the set of states that's trivially distinguishable from the rest |
true
values mark indistinguishable states Definition at line 83 of file dfa.cpp.
valarray<bool> reg::dfa::pImpl::accepting |
vector<char32_t> reg::dfa::pImpl::alphabet |