Algorithms Library Toolkit
A toolkit for algorithms, especially for algorithms on formal languages
|
#include <UnreachableSymbolsRemover.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 unreachable symbols from a context free grammar. Unreachable symbols is a symbol that is not accessible from the initial symbol of the automaton by any sequence of derivations.
|
static |