Algorithms Library Toolkit
A toolkit for algorithms, especially for algorithms on formal languages
Functions
GrammarTransformCommon.h File Reference
#include <grammar/ContextFree/CFG.h>
Include dependency graph for GrammarTransformCommon.h:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Functions

template<class TerminalSymbolType , class NonterminalSymbolType >
void copyNonterminalsRename (grammar::CFG< TerminalSymbolType, ext::pair< NonterminalSymbolType, unsigned > > &dst, const grammar::CFG< TerminalSymbolType, NonterminalSymbolType > &src, const unsigned suffix)
 
template<class TerminalSymbolType , class NonterminalSymbolType >
void copyRulesRenameNonterminals (grammar::CFG< TerminalSymbolType, ext::pair< NonterminalSymbolType, unsigned > > &dst, const grammar::CFG< TerminalSymbolType, NonterminalSymbolType > &src, const unsigned suffix)