Lr1ParserAction. More...

#include <pd_parser.h>

Public Member Functions

 Lr1ParserAction (const Lr1ParserActionElement &lhs, const Lr1ParserActionElement &rhs)
 Constructor for shift actions.
 Lr1ParserAction (const Lr1ParserActionElement &lhs, const Lr1ParserActionElement &rhs, const GrammarProduction production)
 Constructor for reduce actions.
Lr1ParserActionElement const & Lhs () const
 Getter for mLhs.
Lr1ParserActionElement const & Rhs () const
 Getter for mRhs.
bool operator< (const Lr1ParserAction &other) const
 < operator
std::string Str () const
 To String function.

Public Attributes

Lr1ParserActionElement mLhs
Lr1ParserActionElement mRhs
GrammarProduction mProduction
bool mIsReduce

Detailed Description

Lr1ParserAction.

Overview

Overview

Contents

Contents

Definition at line 261 of file pd_parser.h.

Constructor & Destructor Documentation

faudes::Lr1ParserAction::Lr1ParserAction ( const Lr1ParserActionElement lhs,
const Lr1ParserActionElement rhs 
)
inline

Constructor for shift actions.

Parameters
lhslhs
rhsrhs

Definition at line 278 of file pd_parser.h.

faudes::Lr1ParserAction::Lr1ParserAction ( const Lr1ParserActionElement lhs,
const Lr1ParserActionElement rhs,
const GrammarProduction  production 
)
inline

Constructor for reduce actions.

Parameters
lhslhs
rhsrhs
productiongrammar production that causes this rule

Definition at line 290 of file pd_parser.h.

Member Function Documentation

Lr1ParserActionElement const& faudes::Lr1ParserAction::Lhs ( ) const
inline

Getter for mLhs.

Returns
mLhs

Definition at line 298 of file pd_parser.h.

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

< operator

Parameters
othercmp
Returns
true if this < cmp, else false

Definition at line 205 of file pd_parser.cpp.

Lr1ParserActionElement const& faudes::Lr1ParserAction::Rhs ( ) const
inline

Getter for mRhs.

Returns
mRhs

Definition at line 306 of file pd_parser.h.

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

To String function.

Definition at line 212 of file pd_parser.cpp.

Member Data Documentation

bool faudes::Lr1ParserAction::mIsReduce

Definition at line 268 of file pd_parser.h.

Lr1ParserActionElement faudes::Lr1ParserAction::mLhs

Definition at line 265 of file pd_parser.h.

GrammarProduction faudes::Lr1ParserAction::mProduction

Definition at line 267 of file pd_parser.h.

Lr1ParserActionElement faudes::Lr1ParserAction::mRhs

Definition at line 266 of file pd_parser.h.


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

libFAUDES 2.28c --- 2016.09.30 --- c++ api documentaion by doxygen