Algorithms Library Toolkit
A toolkit for algorithms, especially for algorithms on formal languages
|
#include <ToCNF.h>
Static Public Member Functions | |
template<class TerminalSymbolType , class NonterminalSymbolType > | |
static grammar::CNF< TerminalSymbolType, ext::vector< ext::variant< TerminalSymbolType, NonterminalSymbolType > > > | convert (const grammar::CFG< TerminalSymbolType, NonterminalSymbolType > &grammar) |
template<class TerminalSymbolType , class NonterminalSymbolType > | |
static grammar::CNF< TerminalSymbolType, ext::vector< ext::variant< TerminalSymbolType, NonterminalSymbolType > > > | convert (const grammar::EpsilonFreeCFG< TerminalSymbolType, NonterminalSymbolType > &grammar) |
template<class TerminalSymbolType , class NonterminalSymbolType > | |
static grammar::CNF< TerminalSymbolType, ext::vector< ext::variant< TerminalSymbolType, NonterminalSymbolType > > > | convert (const grammar::GNF< TerminalSymbolType, NonterminalSymbolType > &grammar) |
template<class TerminalSymbolType , class NonterminalSymbolType > | |
static grammar::CNF< TerminalSymbolType, NonterminalSymbolType > | convert (const grammar::CNF< TerminalSymbolType, NonterminalSymbolType > &grammar) |
template<class TerminalSymbolType , class NonterminalSymbolType > | |
static grammar::CNF< TerminalSymbolType, ext::vector< ext::variant< TerminalSymbolType, NonterminalSymbolType > > > | convert (const grammar::LG< TerminalSymbolType, NonterminalSymbolType > &grammar) |
template<class TerminalSymbolType , class NonterminalSymbolType > | |
static grammar::CNF< TerminalSymbolType, ext::vector< ext::variant< TerminalSymbolType, NonterminalSymbolType > > > | convert (const grammar::LeftLG< TerminalSymbolType, NonterminalSymbolType > &grammar) |
template<class TerminalSymbolType , class NonterminalSymbolType > | |
static grammar::CNF< TerminalSymbolType, ext::variant< TerminalSymbolType, NonterminalSymbolType > > | convert (const grammar::LeftRG< TerminalSymbolType, NonterminalSymbolType > &grammar) |
template<class TerminalSymbolType , class NonterminalSymbolType > | |
static grammar::CNF< TerminalSymbolType, ext::vector< ext::variant< TerminalSymbolType, NonterminalSymbolType > > > | convert (const grammar::RightLG< TerminalSymbolType, NonterminalSymbolType > &grammar) |
template<class TerminalSymbolType , class NonterminalSymbolType > | |
static grammar::CNF< TerminalSymbolType, ext::variant< TerminalSymbolType, NonterminalSymbolType > > | convert (const grammar::RightRG< TerminalSymbolType, NonterminalSymbolType > &grammar) |
Implements transformation of a grammar into chomsky's normal form.
|
static |
Implements transformation of a grammar into chomsky's normal form.
TerminalSymbolType | the type of terminals in the transformed grammar |
NonterminalSymbolType | the type of nonterminals in the transformed grammar |
grammar | the transformed grammar |
grammar
|
static |
Implements transformation of a grammar into chomsky's normal form.
TerminalSymbolType | the type of terminals in the transformed grammar |
NonterminalSymbolType | the type of nonterminals in the transformed grammar |
grammar | the transformed grammar |
grammar
|
static |
Implements transformation of a grammar into chomsky's normal form.
TerminalSymbolType | the type of terminals in the transformed grammar |
NonterminalSymbolType | the type of nonterminals in the transformed grammar |
grammar | the transformed grammar |
grammar
|
static |
Implements transformation of a grammar into chomsky's normal form.
TerminalSymbolType | the type of terminals in the transformed grammar |
NonterminalSymbolType | the type of nonterminals in the transformed grammar |
grammar | the transformed grammar |
grammar
|
static |
Implements transformation of a grammar into chomsky's normal form.
TerminalSymbolType | the type of terminals in the transformed grammar |
NonterminalSymbolType | the type of nonterminals in the transformed grammar |
grammar | the transformed grammar |
grammar
|
static |
Implements transformation of a grammar into chomsky's normal form.
TerminalSymbolType | the type of terminals in the transformed grammar |
NonterminalSymbolType | the type of nonterminals in the transformed grammar |
grammar | the transformed grammar |
grammar
|
static |
Implements transformation of a grammar into chomsky's normal form.
TerminalSymbolType | the type of terminals in the transformed grammar |
NonterminalSymbolType | the type of nonterminals in the transformed grammar |
grammar | the transformed grammar |
grammar
|
static |
Implements transformation of a grammar into chomsky's normal form.
TerminalSymbolType | the type of terminals in the transformed grammar |
NonterminalSymbolType | the type of nonterminals in the transformed grammar |
grammar | the transformed grammar |
grammar
|
static |
Implements transformation of a grammar into chomsky's normal form.
TerminalSymbolType | the type of terminals in the transformed grammar |
NonterminalSymbolType | the type of nonterminals in the transformed grammar |
grammar | the transformed grammar |
grammar