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

#include <RecursiveNonterminal.h>

Static Public Member Functions

template<class T , class NonterminalSymbolType , class TerminalSymbolType = typename grammar::TerminalSymbolTypeOfGrammar < T >>
static bool isNonterminalRecursive (const T &grammar, const NonterminalSymbolType &nonterminal)
 

Detailed Description

Implements algorithms from Melichar, chapter 3.3

Member Function Documentation

◆ isNonterminalRecursive()

template<class T , class NonterminalSymbolType , class TerminalSymbolType >
bool grammar::properties::RecursiveNonterminal::isNonterminalRecursive ( const T &  grammar,
const NonterminalSymbolType &  nonterminal 
)
static

Retrieves A \in { B : A->^+ B \alpha, where \alpha \in (NuT)* } for given grammar and nonterminal

Template Parameters
Tthe type of the tested grammar
NonterminalSymbolTypethe type of nonterminals in the tested grammar
TerminalSymbolTypethe type of terminals in the tested grammar
Parameters
grammarthe tested grammar
nonterminalthe tested nonterminal
Returns
bool which denote whether the nonterminal is recursive in the grammar
Here is the call graph for this function:

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