#include <RuleSymbol.h>
Public Member Functions | |
RuleSymbol () | |
virtual | ~RuleSymbol () |
virtual bool | IsNonTerm () const =0 |
virtual std::string | Debug () const =0 |
virtual void | Output (std::ostream &out) const =0 |
virtual std::string | GetString () const =0 |
int | Compare (const RuleSymbol &other) const |
Definition at line 15 of file RuleSymbol.h.
RuleSymbol::RuleSymbol | ( | ) |
Definition at line 12 of file RuleSymbol.cpp.
RuleSymbol::~RuleSymbol | ( | ) | [virtual] |
Definition at line 18 of file RuleSymbol.cpp.
int RuleSymbol::Compare | ( | const RuleSymbol & | other | ) | const |
Definition at line 23 of file RuleSymbol.cpp.
References GetString(), IsNonTerm(), and str.
Referenced by RulePhrase::Compare().
virtual std::string RuleSymbol::Debug | ( | ) | const [pure virtual] |
Implemented in NonTerm, and Word.
Referenced by Rule::Debug().
virtual std::string RuleSymbol::GetString | ( | ) | const [pure virtual] |
virtual bool RuleSymbol::IsNonTerm | ( | ) | const [pure virtual] |
Implemented in NonTerm, and Word.
Referenced by Compare(), Rule::CreateAlignments(), Rule::GetScope(), and Rule::Prevalidate().
virtual void RuleSymbol::Output | ( | std::ostream & | out | ) | const [pure virtual] |
Implemented in NonTerm, and Word.
Referenced by RulePhrase::Output().