Lr1 Configuration. More...

#include <pd_parser.h>

Public Member Functions

 Lr1Configuration (const Nonterminal &lhs, const GrammarSymbolVector &beforeDot, const GrammarSymbolVector &afterDot, const Terminal &lookahead)
 Constructor TODO make sure that vectors are not empty.
Nonterminal const & Lhs () const
 Getter for mLhs.
GrammarSymbolVector const & BeforeDot () const
 Getter for mBeforeDot.
GrammarSymbolVector const & AfterDot () const
 Getter for mAfterDot.
Terminal const & Lookahead () const
 Getter for mLookahead.
bool operator< (const Lr1Configuration &other) const
 < operator
bool operator== (const Lr1Configuration &other) const
 == operator
bool operator!= (const Lr1Configuration &other) const
 != operator
std::string Str () const
 To String function.

Public Attributes

Nonterminal mLhs
GrammarSymbolVector mBeforeDot
GrammarSymbolVector mAfterDot
Terminal mLookahead

Detailed Description

Lr1 Configuration.

Overview

Overview

Contents

Contents

Definition at line 33 of file pd_parser.h.

Constructor & Destructor Documentation

faudes::Lr1Configuration::Lr1Configuration ( const Nonterminal lhs,
const GrammarSymbolVector beforeDot,
const GrammarSymbolVector afterDot,
const Terminal lookahead 
)

Constructor TODO make sure that vectors are not empty.

Parameters
lhslefthand side nonterminal
beforeDotbefore dot grammar symbols
afterDotafter dot grammar symbols
lookaheadlookahead terminal

Definition at line 21 of file pd_parser.cpp.

Member Function Documentation

GrammarSymbolVector const& faudes::Lr1Configuration::AfterDot ( ) const
inline

Getter for mAfterDot.

Returns
mAfterDot

Definition at line 78 of file pd_parser.h.

GrammarSymbolVector const& faudes::Lr1Configuration::BeforeDot ( ) const
inline

Getter for mBeforeDot.

Returns
mBeforeDot

Definition at line 70 of file pd_parser.h.

Nonterminal const& faudes::Lr1Configuration::Lhs ( ) const
inline

Getter for mLhs.

Returns
mLhs

Definition at line 62 of file pd_parser.h.

Terminal const& faudes::Lr1Configuration::Lookahead ( ) const
inline

Getter for mLookahead.

Returns
mLookahead

Definition at line 86 of file pd_parser.h.

bool faudes::Lr1Configuration::operator!= ( const Lr1Configuration other) const

!= operator

Parameters
othercmp
Returns
true if this != cmp, else false

Definition at line 57 of file pd_parser.cpp.

bool faudes::Lr1Configuration::operator< ( const Lr1Configuration other) const

< operator

Parameters
othercmp
Returns
true if this < cmp, else false

Definition at line 34 of file pd_parser.cpp.

bool faudes::Lr1Configuration::operator== ( const Lr1Configuration other) const

== operator

Parameters
othercmp
Returns
true if this == cmp, else false

Definition at line 53 of file pd_parser.cpp.

std::string faudes::Lr1Configuration::Str ( void  ) const

To String function.

Definition at line 61 of file pd_parser.cpp.

Member Data Documentation

GrammarSymbolVector faudes::Lr1Configuration::mAfterDot

Definition at line 39 of file pd_parser.h.

GrammarSymbolVector faudes::Lr1Configuration::mBeforeDot

Definition at line 38 of file pd_parser.h.

Nonterminal faudes::Lr1Configuration::mLhs

Definition at line 37 of file pd_parser.h.

Terminal faudes::Lr1Configuration::mLookahead

Definition at line 40 of file pd_parser.h.


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

libFAUDES 2.24g --- 2014.09.15 --- c++ api documentaion by doxygen