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

#include <GrammarToXMLComposer.h>

Static Public Member Functions

template<class SymbolType >
static void composeNonterminalAlphabet (ext::deque< sax::Token > &out, const ext::set< SymbolType > &symbols)
 
template<class SymbolType >
static void composeTerminalAlphabet (ext::deque< sax::Token > &out, const ext::set< SymbolType > &symbols)
 
template<class SymbolType >
static void composeInitialSymbol (ext::deque< sax::Token > &out, const SymbolType &symbol)
 
static void composeGeneratesEpsilon (ext::deque< sax::Token > &out, bool generatesEpsilon)
 
template<class SymbolType >
static void composeRuleLContext (ext::deque< sax::Token > &out, const ext::vector< SymbolType > &symbols)
 
template<class SymbolType >
static void composeRuleLHS (ext::deque< sax::Token > &out, const ext::vector< SymbolType > &symbols)
 
template<class SymbolType >
static void composeRuleRContext (ext::deque< sax::Token > &out, const ext::vector< SymbolType > &symbols)
 
template<class SymbolType >
static void composeRuleSingleSymbolLHS (ext::deque< sax::Token > &out, const SymbolType &symbol)
 
template<class SymbolType >
static void composeRuleRHS (ext::deque< sax::Token > &out, const ext::vector< SymbolType > &symbols)
 
template<class T , class R , class S >
static void composeRuleOneOrTwoSymbolsRHS (ext::deque< sax::Token > &out, const ext::variant< T, ext::pair< R, S > > &symbols)
 
template<class TerminalSymbolType , class NonterminalSymbolType >
static void composeRuleGNFRHS (ext::deque< sax::Token > &out, const ext::pair< TerminalSymbolType, ext::vector< NonterminalSymbolType > > &symbols)
 
template<class TerminalSymbolType , class NonterminalSymbolType >
static void composeRuleLeftLGRHS (ext::deque< sax::Token > &out, const ext::variant< ext::vector< TerminalSymbolType >, ext::pair< NonterminalSymbolType, ext::vector< TerminalSymbolType > > > &symbols)
 
template<class TerminalSymbolType , class NonterminalSymbolType >
static void composeRuleRightLGRHS (ext::deque< sax::Token > &out, const ext::variant< ext::vector< TerminalSymbolType >, ext::pair< ext::vector< TerminalSymbolType >, NonterminalSymbolType > > &symbols)
 
template<class TerminalSymbolType , class NonterminalSymbolType >
static void composeRuleLGRHS (ext::deque< sax::Token > &out, const ext::variant< ext::vector< TerminalSymbolType >, ext::tuple< ext::vector< TerminalSymbolType >, NonterminalSymbolType, ext::vector< TerminalSymbolType > > > &symbols)
 

Detailed Description

This class contains methods to print XML representation of automata to the output stream.

Member Function Documentation

◆ composeGeneratesEpsilon()

static void grammar::GrammarToXMLComposer::composeGeneratesEpsilon ( ext::deque< sax::Token > &  out,
bool  generatesEpsilon 
)
inlinestatic
Here is the caller graph for this function:

◆ composeInitialSymbol()

template<class SymbolType >
void grammar::GrammarToXMLComposer::composeInitialSymbol ( ext::deque< sax::Token > &  out,
const SymbolType &  symbol 
)
static
Here is the caller graph for this function:

◆ composeNonterminalAlphabet()

template<class SymbolType >
void grammar::GrammarToXMLComposer::composeNonterminalAlphabet ( ext::deque< sax::Token > &  out,
const ext::set< SymbolType > &  symbols 
)
static
Here is the caller graph for this function:

◆ composeRuleGNFRHS()

template<class TerminalSymbolType , class NonterminalSymbolType >
void grammar::GrammarToXMLComposer::composeRuleGNFRHS ( ext::deque< sax::Token > &  out,
const ext::pair< TerminalSymbolType, ext::vector< NonterminalSymbolType > > &  symbols 
)
static
Here is the caller graph for this function:

◆ composeRuleLContext()

template<class SymbolType >
void grammar::GrammarToXMLComposer::composeRuleLContext ( ext::deque< sax::Token > &  out,
const ext::vector< SymbolType > &  symbols 
)
static
Here is the caller graph for this function:

◆ composeRuleLeftLGRHS()

template<class TerminalSymbolType , class NonterminalSymbolType >
void grammar::GrammarToXMLComposer::composeRuleLeftLGRHS ( ext::deque< sax::Token > &  out,
const ext::variant< ext::vector< TerminalSymbolType >, ext::pair< NonterminalSymbolType, ext::vector< TerminalSymbolType > > > &  symbols 
)
static
Here is the call graph for this function:
Here is the caller graph for this function:

◆ composeRuleLGRHS()

template<class TerminalSymbolType , class NonterminalSymbolType >
void grammar::GrammarToXMLComposer::composeRuleLGRHS ( ext::deque< sax::Token > &  out,
const ext::variant< ext::vector< TerminalSymbolType >, ext::tuple< ext::vector< TerminalSymbolType >, NonterminalSymbolType, ext::vector< TerminalSymbolType > > > &  symbols 
)
static
Here is the call graph for this function:
Here is the caller graph for this function:

◆ composeRuleLHS()

template<class SymbolType >
void grammar::GrammarToXMLComposer::composeRuleLHS ( ext::deque< sax::Token > &  out,
const ext::vector< SymbolType > &  symbols 
)
static
Here is the caller graph for this function:

◆ composeRuleOneOrTwoSymbolsRHS()

template<class T , class R , class S >
void grammar::GrammarToXMLComposer::composeRuleOneOrTwoSymbolsRHS ( ext::deque< sax::Token > &  out,
const ext::variant< T, ext::pair< R, S > > &  symbols 
)
static
Here is the caller graph for this function:

◆ composeRuleRContext()

template<class SymbolType >
void grammar::GrammarToXMLComposer::composeRuleRContext ( ext::deque< sax::Token > &  out,
const ext::vector< SymbolType > &  symbols 
)
static
Here is the caller graph for this function:

◆ composeRuleRHS()

template<class SymbolType >
void grammar::GrammarToXMLComposer::composeRuleRHS ( ext::deque< sax::Token > &  out,
const ext::vector< SymbolType > &  symbols 
)
static
Here is the caller graph for this function:

◆ composeRuleRightLGRHS()

template<class TerminalSymbolType , class NonterminalSymbolType >
void grammar::GrammarToXMLComposer::composeRuleRightLGRHS ( ext::deque< sax::Token > &  out,
const ext::variant< ext::vector< TerminalSymbolType >, ext::pair< ext::vector< TerminalSymbolType >, NonterminalSymbolType > > &  symbols 
)
static
Here is the call graph for this function:
Here is the caller graph for this function:

◆ composeRuleSingleSymbolLHS()

template<class SymbolType >
void grammar::GrammarToXMLComposer::composeRuleSingleSymbolLHS ( ext::deque< sax::Token > &  out,
const SymbolType &  symbol 
)
static
Here is the caller graph for this function:

◆ composeTerminalAlphabet()

template<class SymbolType >
void grammar::GrammarToXMLComposer::composeTerminalAlphabet ( ext::deque< sax::Token > &  out,
const ext::set< SymbolType > &  symbols 
)
static
Here is the caller graph for this function:

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