faudes::Lr1Parser Class Reference
|
||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
Public Member Functions | |
| Lr1Parser () | |
| default constructor | |
| Idx | StartState () const |
| Getter for mStartState. | |
| Idx | FinalState () const |
| Getter for mFinalState. | |
| std::set< Idx > const & | Nonterminals () const |
| Getter for mNonterminals. | |
| std::set< Terminal > const & | Terminals () const |
| Getter for mTerminals. | |
| std::set< Lr1ParserAction > const & | Actions () const |
| Getter for mActions. | |
| Terminal | AugSymbol () const |
| Getter for mAugSymbol. | |
| bool | SetStartState (Idx start) |
| set the parser's start state and add it to the set of nonterminals | |
| bool | SetFinalState (Idx final) |
| set the parser's final state and add it to the set of nonterminals | |
| bool | InsNonterminal (Idx nt) |
| Add a new nonterminal to the parser. | |
| void | SetAugSymbol (Terminal t) |
| TODO description. | |
| bool | InsTerminal (const Terminal &t) |
| Add a new terminal to the parser. | |
| bool | InsAction (const Lr1ParserAction &action) |
| Add a new Lr1ParserAction to the parser. | |
| std::string | StrNonterminals () const |
| To String function for all nonterminals. | |
| std::string | StrTerminals () const |
| To String function for all terminals. | |
| std::string | StrActions (std::string separator) const |
| To String function for actions. | |
| std::string | Str () const |
| To String function. | |
Public Attributes | |
| Idx | mStartState |
| Idx | mFinalState |
| std::set< Idx > | mNonterminals |
| std::set< Terminal > | mTerminals |
| std::set< Lr1ParserAction > | mActions |
| Terminal | mAugSymbol |
Overview
Contents
Definition at line 337 of file pd_parser.h.
| faudes::Lr1Parser::Lr1Parser | ( | ) | [inline] |
default constructor
Definition at line 350 of file pd_parser.h.
| std::set<Lr1ParserAction> const& faudes::Lr1Parser::Actions | ( | ) | const [inline] |
| Terminal faudes::Lr1Parser::AugSymbol | ( | ) | const [inline] |
| Idx faudes::Lr1Parser::FinalState | ( | ) | const [inline] |
| bool faudes::Lr1Parser::InsAction | ( | const Lr1ParserAction & | action | ) |
Add a new Lr1ParserAction to the parser.
| action | the action to add |
Definition at line 245 of file pd_parser.cpp.
| bool faudes::Lr1Parser::InsNonterminal | ( | Idx | nt | ) |
Add a new nonterminal to the parser.
| nt | the nonterminal to add |
Definition at line 237 of file pd_parser.cpp.
| bool faudes::Lr1Parser::InsTerminal | ( | const Terminal & | t | ) |
Add a new terminal to the parser.
| t | the terminal to add |
Definition at line 241 of file pd_parser.cpp.
| std::set<Idx> const& faudes::Lr1Parser::Nonterminals | ( | ) | const [inline] |
| void faudes::Lr1Parser::SetAugSymbol | ( | Terminal | t | ) |
| bool faudes::Lr1Parser::SetFinalState | ( | Idx | final | ) |
set the parser's final state and add it to the set of nonterminals
| final | final state to set |
Definition at line 232 of file pd_parser.cpp.
| bool faudes::Lr1Parser::SetStartState | ( | Idx | start | ) |
set the parser's start state and add it to the set of nonterminals
| start | start state to set |
Definition at line 227 of file pd_parser.cpp.
| Idx faudes::Lr1Parser::StartState | ( | ) | const [inline] |
| std::string faudes::Lr1Parser::Str | ( | void | ) | const |
To String function.
Definition at line 290 of file pd_parser.cpp.
| std::string faudes::Lr1Parser::StrActions | ( | std::string | separator | ) | const |
To String function for actions.
Definition at line 278 of file pd_parser.cpp.
| std::string faudes::Lr1Parser::StrNonterminals | ( | ) | const |
To String function for all nonterminals.
Definition at line 254 of file pd_parser.cpp.
| std::string faudes::Lr1Parser::StrTerminals | ( | ) | const |
To String function for all terminals.
Definition at line 266 of file pd_parser.cpp.
| std::set<Terminal> const& faudes::Lr1Parser::Terminals | ( | ) | const [inline] |
| std::set<Lr1ParserAction> faudes::Lr1Parser::mActions |
Definition at line 344 of file pd_parser.h.
Definition at line 345 of file pd_parser.h.
Definition at line 341 of file pd_parser.h.
| std::set<Idx> faudes::Lr1Parser::mNonterminals |
Definition at line 342 of file pd_parser.h.
Definition at line 340 of file pd_parser.h.
| std::set<Terminal> faudes::Lr1Parser::mTerminals |
Definition at line 343 of file pd_parser.h.
libFAUDES 2.23h --- 2014.04.03 --- c++ api documentaion by doxygen