Terminal Class Reference

#include <include/exp.h>

Inheritance diagram for Terminal:

Exp TypeVal List of all members.

Detailed Description

Definition at line 456 of file exp.h.

Public Member Functions

virtual Expaccept (ExpModifier *v)
virtual bool accept (ExpVisitor *v)
virtual void appendDotFile (std::ofstream &of)
virtual TypeascendType ()
virtual Expclone ()
virtual void descendType (Type *parentType, bool &ch, Statement *s)
virtual bool isTerminal ()
virtual bool match (const char *pattern, std::map< std::string, Exp * > &bindings)
virtual bool operator *= (Exp &o)
virtual bool operator< (const Exp &o) const
virtual bool operator== (const Exp &o) const
virtual void print (std::ostream &os, bool html=false)
virtual void printx (int ind)
 Terminal (Terminal &o)
 Terminal (OPER op)

Friends

class XMLProgParser


Constructor & Destructor Documentation

Terminal::Terminal OPER  op  ) 
 

Definition at line 64 of file exp.cpp.

Referenced by clone().

Terminal::Terminal Terminal o  ) 
 

Definition at line 65 of file exp.cpp.


Member Function Documentation

Exp * Terminal::accept ExpModifier v  )  [virtual]
 

Implements Exp.

Reimplemented in TypeVal.

Definition at line 3742 of file exp.cpp.

References ExpModifier::postVisit(), and ExpModifier::preVisit().

bool Terminal::accept ExpVisitor v  )  [virtual]
 

Implements Exp.

Reimplemented in TypeVal.

Definition at line 3649 of file exp.cpp.

References ExpVisitor::visit().

void Terminal::appendDotFile std::ofstream &  of  )  [virtual]
 

Implements Exp.

Definition at line 1098 of file exp.cpp.

References Exp::op, operStrings, and opWild.

Type * Terminal::ascendType  )  [virtual]
 

Reimplemented from Exp.

Definition at line 1026 of file dfa.cpp.

References Exp::op, opCF, opDefineAll, opFlags, opPC, opZF, and STD_SIZE.

Exp * Terminal::clone  )  [virtual]
 

Implements Exp.

Reimplemented in TypeVal.

Definition at line 289 of file exp.cpp.

References Terminal().

Referenced by ExpTest::testIsAfpTerm().

void Terminal::descendType Type parentType,
bool &  ch,
Statement s
[virtual]
 

Reimplemented from Exp.

Definition at line 1295 of file dfa.cpp.

virtual bool Terminal::isTerminal  )  [inline, virtual]
 

Reimplemented from Exp.

Definition at line 474 of file exp.h.

bool Terminal::match const char *  pattern,
std::map< std::string, Exp * > &  bindings
[virtual]
 

Reimplemented from Exp.

Definition at line 1498 of file exp.cpp.

References LOG, and Exp::match().

bool Terminal::operator *= Exp o  )  [virtual]
 

Implements Exp.

Reimplemented in TypeVal.

Definition at line 545 of file exp.cpp.

References Exp::getOper(), Exp::getSubExp1(), and opSubscript.

bool Terminal::operator< const Exp o  )  const [virtual]
 

Implements Exp.

Reimplemented in TypeVal.

Definition at line 445 of file exp.cpp.

References Exp::getOper(), and Exp::op.

bool Terminal::operator== const Exp o  )  const [virtual]
 

Implements Exp.

Reimplemented in TypeVal.

Definition at line 380 of file exp.cpp.

References Exp::op, opAddrOf, opIntConst, opMemOf, opRegOf, opStrConst, opWild, opWildAddrOf, opWildIntConst, opWildMemOf, opWildRegOf, and opWildStrConst.

void Terminal::print std::ostream &  os,
bool  html = false
[virtual]
 

Implements Exp.

Reimplemented in TypeVal.

Definition at line 758 of file exp.cpp.

References LOG, Exp::op, opAFP, opAGP, opAnull, opCF, opDefineAll, opDF, operStrings, opFalse, opFflags, opFlags, opFpop, opFpush, opNF, opNil, opOF, opPC, opTrue, opWild, opWildAddrOf, opWildIntConst, opWildMemOf, opWildRegOf, opWildStrConst, and opZF.

void Terminal::printx int  ind  )  [virtual]
 

Implements Exp.

Reimplemented in TypeVal.

Definition at line 3818 of file exp.cpp.

References operStrings.


Friends And Related Function Documentation

friend class XMLProgParser [friend]
 

Reimplemented from Exp.

Reimplemented in TypeVal.

Definition at line 486 of file exp.h.


The documentation for this class was generated from the following files:
Generated on Tue Sep 19 21:18:46 2006 for Boomerang by  doxygen 1.4.6