Algorithms Library Toolkit
A toolkit for algorithms, especially for algorithms on formal languages
|
#include <ToPostfixPushdownAutomaton.h>
Static Public Member Functions | |
template<class SymbolType > | |
static automaton::NPDA< ext::variant< common::ranked_symbol< SymbolType >, alphabet::EndSymbol >, ext::variant< common::ranked_symbol< ext::pair< SymbolType, unsigned > >, alphabet::BottomOfTheStackSymbol >, char > | convert (const rte::FormalRTE< SymbolType > &rte) |
Converts a tree regular expression to a pushdown automaton.
This class serves as a "default wrapper" over the conversion of RTE to PDA. It delegates to the conversion algorithm similar to glushkov construction.
|
static |
Implements conversion of the tree regular expressions to a pushdown automaton using Glushkov's method of neighbours.
SymbolType | the type of symbols in the regular expression |
RankType | the type of symbol ranks in the regular expression |
regexp | the regexp to convert |