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 313 of file pd_grammar.h.

Constructor & Destructor Documentation

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

Constructor.

Definition at line 325 of file pd_grammar.h.

Member Function Documentation

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

Getter for mLhs.

Returns
mLhs

Definition at line 333 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 341 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 318 of file pd_grammar.h.

GrammarSymbolVector faudes::GrammarProduction::mRhs

Right hand side, can contain both Terminals and Nonterminals.

Definition at line 320 of file pd_grammar.h.


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

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