Algorithms Library Toolkit
A toolkit for algorithms, especially for algorithms on formal languages
Static Public Member Functions
grammar::simplify::SimpleRulesRemover Class Reference

#include <SimpleRulesRemover.h>

Static Public Member Functions

template<class TerminalSymbolType , class NonterminalSymbolType >
static grammar::CFG< TerminalSymbolType, NonterminalSymbolType > remove (const grammar::CFG< TerminalSymbolType, NonterminalSymbolType > &grammar)
 
template<class TerminalSymbolType , class NonterminalSymbolType >
static grammar::EpsilonFreeCFG< TerminalSymbolType, NonterminalSymbolType > remove (const grammar::EpsilonFreeCFG< TerminalSymbolType, NonterminalSymbolType > &grammar)
 
template<class TerminalSymbolType , class NonterminalSymbolType >
static grammar::GNF< TerminalSymbolType, NonterminalSymbolType > remove (const grammar::GNF< TerminalSymbolType, NonterminalSymbolType > &grammar)
 
template<class TerminalSymbolType , class NonterminalSymbolType >
static grammar::CNF< TerminalSymbolType, NonterminalSymbolType > remove (const grammar::CNF< TerminalSymbolType, NonterminalSymbolType > &grammar)
 
template<class TerminalSymbolType , class NonterminalSymbolType >
static grammar::LG< TerminalSymbolType, NonterminalSymbolType > remove (const grammar::LG< TerminalSymbolType, NonterminalSymbolType > &grammar)
 
template<class TerminalSymbolType , class NonterminalSymbolType >
static grammar::LeftLG< TerminalSymbolType, NonterminalSymbolType > remove (const grammar::LeftLG< TerminalSymbolType, NonterminalSymbolType > &grammar)
 
template<class TerminalSymbolType , class NonterminalSymbolType >
static grammar::LeftRG< TerminalSymbolType, NonterminalSymbolType > remove (const grammar::LeftRG< TerminalSymbolType, NonterminalSymbolType > &grammar)
 
template<class TerminalSymbolType , class NonterminalSymbolType >
static grammar::RightLG< TerminalSymbolType, NonterminalSymbolType > remove (const grammar::RightLG< TerminalSymbolType, NonterminalSymbolType > &grammar)
 
template<class TerminalSymbolType , class NonterminalSymbolType >
static grammar::RightRG< TerminalSymbolType, NonterminalSymbolType > remove (const grammar::RightRG< TerminalSymbolType, NonterminalSymbolType > &grammar)
 

Member Function Documentation

◆ remove() [1/9]

template<class TerminalSymbolType , class NonterminalSymbolType >
grammar::CFG< TerminalSymbolType, NonterminalSymbolType > grammar::simplify::SimpleRulesRemover::remove ( const grammar::CFG< TerminalSymbolType, NonterminalSymbolType > &  grammar)
static

Removes simple rules from the given grammar.

Template Parameters
TerminalSymbolTypethe type of terminals in the grammar
NonterminalSymbolTypethe type of nonterminals in the grammar
Parameters
grammarthe modified grammar
Returns
grammar without simple rules
Here is the caller graph for this function:

◆ remove() [2/9]

template<class TerminalSymbolType , class NonterminalSymbolType >
grammar::CNF< TerminalSymbolType, NonterminalSymbolType > grammar::simplify::SimpleRulesRemover::remove ( const grammar::CNF< TerminalSymbolType, NonterminalSymbolType > &  grammar)
static

Removes simple rules from the given grammar.

Template Parameters
TerminalSymbolTypethe type of terminals in the grammar
NonterminalSymbolTypethe type of nonterminals in the grammar
Parameters
grammarthe modified grammar
Returns
grammar without simple rules

◆ remove() [3/9]

template<class TerminalSymbolType , class NonterminalSymbolType >
grammar::EpsilonFreeCFG< TerminalSymbolType, NonterminalSymbolType > grammar::simplify::SimpleRulesRemover::remove ( const grammar::EpsilonFreeCFG< TerminalSymbolType, NonterminalSymbolType > &  grammar)
static

Removes simple rules from the given grammar.

Template Parameters
TerminalSymbolTypethe type of terminals in the grammar
NonterminalSymbolTypethe type of nonterminals in the grammar
Parameters
grammarthe modified grammar
Returns
grammar without simple rules
Here is the call graph for this function:

◆ remove() [4/9]

template<class TerminalSymbolType , class NonterminalSymbolType >
grammar::GNF< TerminalSymbolType, NonterminalSymbolType > grammar::simplify::SimpleRulesRemover::remove ( const grammar::GNF< TerminalSymbolType, NonterminalSymbolType > &  grammar)
static

Removes simple rules from the given grammar.

Template Parameters
TerminalSymbolTypethe type of terminals in the grammar
NonterminalSymbolTypethe type of nonterminals in the grammar
Parameters
grammarthe modified grammar
Returns
grammar without simple rules

◆ remove() [5/9]

template<class TerminalSymbolType , class NonterminalSymbolType >
grammar::LeftLG< TerminalSymbolType, NonterminalSymbolType > grammar::simplify::SimpleRulesRemover::remove ( const grammar::LeftLG< TerminalSymbolType, NonterminalSymbolType > &  grammar)
static

Removes simple rules from the given grammar.

Template Parameters
TerminalSymbolTypethe type of terminals in the grammar
NonterminalSymbolTypethe type of nonterminals in the grammar
Parameters
grammarthe modified grammar
Returns
grammar without simple rules

◆ remove() [6/9]

template<class TerminalSymbolType , class NonterminalSymbolType >
grammar::LeftRG< TerminalSymbolType, NonterminalSymbolType > grammar::simplify::SimpleRulesRemover::remove ( const grammar::LeftRG< TerminalSymbolType, NonterminalSymbolType > &  grammar)
static

Removes simple rules from the given grammar.

Template Parameters
TerminalSymbolTypethe type of terminals in the grammar
NonterminalSymbolTypethe type of nonterminals in the grammar
Parameters
grammarthe modified grammar
Returns
grammar without simple rules

◆ remove() [7/9]

template<class TerminalSymbolType , class NonterminalSymbolType >
grammar::LG< TerminalSymbolType, NonterminalSymbolType > grammar::simplify::SimpleRulesRemover::remove ( const grammar::LG< TerminalSymbolType, NonterminalSymbolType > &  grammar)
static

Removes simple rules from the given grammar.

Template Parameters
TerminalSymbolTypethe type of terminals in the grammar
NonterminalSymbolTypethe type of nonterminals in the grammar
Parameters
grammarthe modified grammar
Returns
grammar without simple rules

◆ remove() [8/9]

template<class TerminalSymbolType , class NonterminalSymbolType >
grammar::RightLG< TerminalSymbolType, NonterminalSymbolType > grammar::simplify::SimpleRulesRemover::remove ( const grammar::RightLG< TerminalSymbolType, NonterminalSymbolType > &  grammar)
static

Removes simple rules from the given grammar.

Template Parameters
TerminalSymbolTypethe type of terminals in the grammar
NonterminalSymbolTypethe type of nonterminals in the grammar
Parameters
grammarthe modified grammar
Returns
grammar without simple rules

◆ remove() [9/9]

template<class TerminalSymbolType , class NonterminalSymbolType >
grammar::RightRG< TerminalSymbolType, NonterminalSymbolType > grammar::simplify::SimpleRulesRemover::remove ( const grammar::RightRG< TerminalSymbolType, NonterminalSymbolType > &  grammar)
static

Removes simple rules from the given grammar.

Template Parameters
TerminalSymbolTypethe type of terminals in the grammar
NonterminalSymbolTypethe type of nonterminals in the grammar
Parameters
grammarthe modified grammar
Returns
grammar without simple rules

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