Algorithms Library Toolkit
A toolkit for algorithms, especially for algorithms on formal languages
Static Public Member Functions
regexp::transform::RegExpAlternate Class Reference

#include <RegExpAlternate.h>

Static Public Member Functions

template<class SymbolType >
static regexp::FormalRegExp< SymbolType > alternate (const regexp::FormalRegExp< SymbolType > &first, const regexp::FormalRegExp< SymbolType > &second)
 
template<class SymbolType >
static regexp::FormalRegExpStructure< SymbolType > alternate (const regexp::FormalRegExpStructure< SymbolType > &first, const regexp::FormalRegExpStructure< SymbolType > &second)
 
template<class SymbolType >
static regexp::UnboundedRegExp< SymbolType > alternate (const regexp::UnboundedRegExp< SymbolType > &first, const regexp::UnboundedRegExp< SymbolType > &second)
 
template<class SymbolType >
static regexp::UnboundedRegExpStructure< SymbolType > alternate (const regexp::UnboundedRegExpStructure< SymbolType > &first, const regexp::UnboundedRegExpStructure< SymbolType > &second)
 

Detailed Description

Implements alternation of two regular expressions.

Member Function Documentation

◆ alternate() [1/4]

template<class SymbolType >
regexp::FormalRegExp< SymbolType > regexp::transform::RegExpAlternate::alternate ( const regexp::FormalRegExp< SymbolType > &  first,
const regexp::FormalRegExp< SymbolType > &  second 
)
static

Implements alternation of two regular expressions.

Template Parameters
SymbolTypethe type of symbols in the regular expression
Parameters
firstthe first regexp to alternate
secondthe second regexp to alternate
Returns
regexp describing first + second
Here is the call graph for this function:
Here is the caller graph for this function:

◆ alternate() [2/4]

template<class SymbolType >
regexp::FormalRegExpStructure< SymbolType > regexp::transform::RegExpAlternate::alternate ( const regexp::FormalRegExpStructure< SymbolType > &  first,
const regexp::FormalRegExpStructure< SymbolType > &  second 
)
static

\override

Here is the call graph for this function:

◆ alternate() [3/4]

template<class SymbolType >
regexp::UnboundedRegExp< SymbolType > regexp::transform::RegExpAlternate::alternate ( const regexp::UnboundedRegExp< SymbolType > &  first,
const regexp::UnboundedRegExp< SymbolType > &  second 
)
static

\override

Here is the call graph for this function:

◆ alternate() [4/4]

template<class SymbolType >
regexp::UnboundedRegExpStructure< SymbolType > regexp::transform::RegExpAlternate::alternate ( const regexp::UnboundedRegExpStructure< SymbolType > &  first,
const regexp::UnboundedRegExpStructure< SymbolType > &  second 
)
static

\override

Here is the call graph for this function:

The documentation for this class was generated from the following file: