faudes::GrammarProduction Class Reference

Grammar Production. More...

#include <pd_grammar.h>

Public Member Functions

 GrammarProduction (const Nonterminal &lhs, const GrammarSymbolVector &rhs)
 Constructor.
Nonterminal const & Lhs () const
 Getter for mLhs.
GrammarSymbolVector const & Rhs () const
 Getter for mRhs.
std::string Str () const
 To String function.
bool operator< (const GrammarProduction &other) const
 < operator

Public Attributes

Nonterminal mLhs
 Nonterminal left hand side.
GrammarSymbolVector mRhs
 Right hand side, can contain both Terminals and Nonterminals.

Detailed Description

Grammar Production.

Overview

Overview

Contents

Contents

Definition at line 303 of file pd_grammar.h.

Constructor & Destructor Documentation

faudes::GrammarProduction::GrammarProduction ( const Nonterminal lhs,
const GrammarSymbolVector rhs 
)
inline

Constructor.

Definition at line 315 of file pd_grammar.h.

Member Function Documentation

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

Getter for mLhs.

Returns
mLhs

Definition at line 323 of file pd_grammar.h.

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

< operator

Parameters
othercmp
Returns
true if this < cmp, else false

Definition at line 211 of file pd_grammar.cpp.

GrammarSymbolVector const& faudes::GrammarProduction::Rhs ( ) const
inline

Getter for mRhs.

Returns
mRhs

Definition at line 331 of file pd_grammar.h.

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

To String function.

Definition at line 201 of file pd_grammar.cpp.

Member Data Documentation

Nonterminal faudes::GrammarProduction::mLhs

Nonterminal left hand side.

Definition at line 308 of file pd_grammar.h.

GrammarSymbolVector faudes::GrammarProduction::mRhs

Right hand side, can contain both Terminals and Nonterminals.

Definition at line 310 of file pd_grammar.h.


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

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