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

#include <RandomizeGrammar.h>

Static Public Member Functions

template<class TerminalSymbolType , class NonterminalSymbolType >
static grammar::LeftRG< TerminalSymbolType, NonterminalSymbolType > randomize (const grammar::LeftRG< TerminalSymbolType, NonterminalSymbolType > &gram)
 
template<class TerminalSymbolType , class NonterminalSymbolType >
static grammar::LeftLG< TerminalSymbolType, NonterminalSymbolType > randomize (const grammar::LeftLG< TerminalSymbolType, NonterminalSymbolType > &gram)
 
template<class TerminalSymbolType , class NonterminalSymbolType >
static grammar::RightRG< TerminalSymbolType, NonterminalSymbolType > randomize (const grammar::RightRG< TerminalSymbolType, NonterminalSymbolType > &gram)
 
template<class TerminalSymbolType , class NonterminalSymbolType >
static grammar::RightLG< TerminalSymbolType, NonterminalSymbolType > randomize (const grammar::RightLG< TerminalSymbolType, NonterminalSymbolType > &gram)
 
template<class TerminalSymbolType , class NonterminalSymbolType >
static grammar::CFG< TerminalSymbolType, NonterminalSymbolType > randomize (const grammar::CFG< TerminalSymbolType, NonterminalSymbolType > &gram)
 

Member Function Documentation

◆ randomize() [1/5]

template<class TerminalSymbolType , class NonterminalSymbolType >
grammar::CFG< TerminalSymbolType, NonterminalSymbolType > grammar::generate::RandomizeGrammar::randomize ( const grammar::CFG< TerminalSymbolType, NonterminalSymbolType > &  gram)
static

\override

Here is the call graph for this function:

◆ randomize() [2/5]

template<class TerminalSymbolType , class NonterminalSymbolType >
grammar::LeftLG< TerminalSymbolType, NonterminalSymbolType > grammar::generate::RandomizeGrammar::randomize ( const grammar::LeftLG< TerminalSymbolType, NonterminalSymbolType > &  gram)
static

\override

Here is the call graph for this function:

◆ randomize() [3/5]

template<class TerminalSymbolType , class NonterminalSymbolType >
grammar::LeftRG< TerminalSymbolType, NonterminalSymbolType > grammar::generate::RandomizeGrammar::randomize ( const grammar::LeftRG< TerminalSymbolType, NonterminalSymbolType > &  gram)
static

Shuffle the set of nonterminal symbols.

Template Parameters
TerminalSymbolTypethe type of terminal symbols of the random grammar
NonterminalSymbolTypethe type of nonterminal symbols of the random grammar
Parameters
gramthe grammar to shuffle
Returns
grammar with shuffled nonterminal symbols
Here is the call graph for this function:

◆ randomize() [4/5]

template<class TerminalSymbolType , class NonterminalSymbolType >
grammar::RightLG< TerminalSymbolType, NonterminalSymbolType > grammar::generate::RandomizeGrammar::randomize ( const grammar::RightLG< TerminalSymbolType, NonterminalSymbolType > &  gram)
static

\override

Here is the call graph for this function:

◆ randomize() [5/5]

template<class TerminalSymbolType , class NonterminalSymbolType >
grammar::RightRG< TerminalSymbolType, NonterminalSymbolType > grammar::generate::RandomizeGrammar::randomize ( const grammar::RightRG< TerminalSymbolType, NonterminalSymbolType > &  gram)
static

\override

Here is the call graph for this function:

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