Algorithms Library Toolkit
A toolkit for algorithms, especially for algorithms on formal languages
|
#include <UnproductiveSymbolsRemover.h>
Static Public Member Functions | |
template<class T , class TerminalSymbolType = typename grammar::TerminalSymbolTypeOfGrammar < T >, class NonterminalSymbolType = typename grammar::NonterminalSymbolTypeOfGrammar < T >> | |
static T | remove (const T &grammar) |
Algorithm for the removal of unproductive symbols from a context free grammar. Unproductive symbol is a nonterminal symbol that can't be transformed to sentece by any sequence of derivations.
|
static |