#include <RandomizeGrammar.h>
|
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) |
|
◆ randomize() [1/5]
template<class TerminalSymbolType , class NonterminalSymbolType >
grammar::CFG< TerminalSymbolType, NonterminalSymbolType > grammar::generate::RandomizeGrammar::randomize |
( |
const grammar::CFG< TerminalSymbolType, NonterminalSymbolType > & |
gram | ) |
|
|
static |
◆ randomize() [2/5]
template<class TerminalSymbolType , class NonterminalSymbolType >
grammar::LeftLG< TerminalSymbolType, NonterminalSymbolType > grammar::generate::RandomizeGrammar::randomize |
( |
const grammar::LeftLG< TerminalSymbolType, NonterminalSymbolType > & |
gram | ) |
|
|
static |
◆ 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
-
TerminalSymbolType | the type of terminal symbols of the random grammar |
NonterminalSymbolType | the type of nonterminal symbols of the random grammar |
- Parameters
-
gram | the grammar to shuffle |
- Returns
- grammar with shuffled nonterminal symbols
◆ randomize() [4/5]
template<class TerminalSymbolType , class NonterminalSymbolType >
grammar::RightLG< TerminalSymbolType, NonterminalSymbolType > grammar::generate::RandomizeGrammar::randomize |
( |
const grammar::RightLG< TerminalSymbolType, NonterminalSymbolType > & |
gram | ) |
|
|
static |
◆ randomize() [5/5]
template<class TerminalSymbolType , class NonterminalSymbolType >
grammar::RightRG< TerminalSymbolType, NonterminalSymbolType > grammar::generate::RandomizeGrammar::randomize |
( |
const grammar::RightRG< TerminalSymbolType, NonterminalSymbolType > & |
gram | ) |
|
|
static |
The documentation for this class was generated from the following file: