faudes::Nonterminal Class Reference
|
|||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
Public Member Functions | |
| Nonterminal (const Idx state, const std::vector< Idx > symbols) | |
| Constructor for NonterminalEnd. | |
| Nonterminal (const Idx state1, const std::vector< Idx > symbols, const Idx state2) | |
| Constructor for NonterminalMid. | |
| Idx | StartState () const |
| Getter for startState. | |
| const std::vector< Idx > & | OnStack () const |
| Getter for onStack. | |
| Idx | EndState () const |
| Getter for endState. | |
| virtual std::string | Str () const |
| To String function. | |
| bool | operator< (const GrammarSymbol &other) const |
| < operator | |
| Nonterminal * | Clone () const |
| Clone function. | |
Public Attributes | |
| Idx | mStartState |
| The start state. | |
| std::vector< Idx > | mOnStack |
| The stack symbols. | |
| Idx | mEndState |
| The end state. | |
Nonterminals are constructed from two states and a stack symbol or one state and a stack symbol.
Overview
Contents
Definition at line 164 of file pd_grammar.h.
Constructor for NonterminalEnd.
Definition at line 179 of file pd_grammar.h.
| faudes::Nonterminal::Nonterminal | ( | const Idx | state1, | |
| const std::vector< Idx > | symbols, | |||
| const Idx | state2 | |||
| ) | [inline] |
Constructor for NonterminalMid.
Definition at line 184 of file pd_grammar.h.
| Nonterminal * faudes::Nonterminal::Clone | ( | ) | const [virtual] |
Clone function.
Allocates memory!
Implements faudes::GrammarSymbol.
Definition at line 109 of file pd_grammar.cpp.
| Idx faudes::Nonterminal::EndState | ( | ) | const [inline] |
| const std::vector<Idx>& faudes::Nonterminal::OnStack | ( | ) | const [inline] |
Getter for onStack.
Definition at line 200 of file pd_grammar.h.
| bool faudes::Nonterminal::operator< | ( | const GrammarSymbol & | other | ) | const [virtual] |
< operator
| other | cmp |
Implements faudes::GrammarSymbol.
Definition at line 88 of file pd_grammar.cpp.
| Idx faudes::Nonterminal::StartState | ( | ) | const [inline] |
| std::string faudes::Nonterminal::Str | ( | void | ) | const [virtual] |
The end state.
Definition at line 173 of file pd_grammar.h.
| std::vector<Idx> faudes::Nonterminal::mOnStack |
The stack symbols.
Definition at line 171 of file pd_grammar.h.
The start state.
Definition at line 169 of file pd_grammar.h.
libFAUDES 2.23h --- 2014.04.03 --- c++ api documentaion by doxygen