Algorithms Library Toolkit
A toolkit for algorithms, especially for algorithms on formal languages
|
#include <ToAutomatonGlushkov.h>
Static Public Member Functions | |
template<class SymbolType > | |
static automaton::NFA< SymbolType, ext::pair< SymbolType, unsigned > > | convert (const regexp::UnboundedRegExp< SymbolType > ®exp) |
template<class SymbolType > | |
static automaton::NFA< SymbolType, ext::pair< SymbolType, unsigned > > | convert (const regexp::FormalRegExp< SymbolType > ®exp) |
Converts regular expression to finite automaton using Glushkov's NFA construction algorithm. Source: Melichar 2.107
|
static |
This is an overloaded member function, provided for convenience. It differs from the above function only in what argument(s) it accepts.
|
static |
Implements conversion of regular expressions to finite automata using Glushkov's method of neighbours.
SymbolType | the type of symbols in the regular expression |
regexp | the regexp to convert |