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

#include <Rename.h>

Static Public Member Functions

template<class TerminalSymbolType , class NonterminalSymbolType >
static grammar::RightRG< TerminalSymbolType, unsigned > rename (const grammar::RightRG< TerminalSymbolType, NonterminalSymbolType > &rrg)
 
template<class TerminalSymbolType , class NonterminalSymbolType >
static grammar::LeftRG< TerminalSymbolType, unsigned > rename (const grammar::LeftRG< TerminalSymbolType, NonterminalSymbolType > &lrg)
 

Member Function Documentation

◆ rename() [1/2]

template<class TerminalSymbolType , class NonterminalSymbolType >
grammar::LeftRG< TerminalSymbolType, unsigned > grammar::simplify::Rename::rename ( const grammar::LeftRG< TerminalSymbolType, NonterminalSymbolType > &  lrg)
static

\override

Here is the call graph for this function:

◆ rename() [2/2]

template<class TerminalSymbolType , class NonterminalSymbolType >
grammar::RightRG< TerminalSymbolType, unsigned > grammar::simplify::Rename::rename ( const grammar::RightRG< TerminalSymbolType, NonterminalSymbolType > &  rrg)
static

Renames nonterminal symbols in given grammar

Template Parameters
TerminalSymbolTypethe type of terminal symbol in the given grammar
NonterminalSymbolTypethe type of nonterminal symbol in the given grammar
Parameters
grammarthe renamed grammar
Returns
grammar with nonterminal symbols renamed
Here is the call graph for this function:

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