LRDE Tiger Compiler  1.34a $Id: 7fef12e1f5fa43449d667a0eec1d837c40fc1202 $
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros
translate::Exp Class Reference

Root for all the following classes. More...

#include <exp.hh>

Inheritance diagram for translate::Exp:

Public Member Functions

virtual ~Exp ()
virtual std::ostream & dump (std::ostream &) const =0
virtual tree::rExp un_ex ()=0
 Pretend THIS was an Ex: return the expression part.
virtual tree::rStm un_nx ()=0
 Pretend THIS was an Nx: return the statement part.
virtual tree::rStm un_cx (const temp::Label &t, const temp::Label &f)=0
 Pretend THIS was a Cx: return the branching such that the resulting code jump to t if the conditional is satisfied, f otherwise.

Detailed Description

Root for all the following classes.

Constructor & Destructor Documentation

virtual translate::Exp::~Exp ( )
inlinevirtual

Member Function Documentation

virtual std::ostream& translate::Exp::dump ( std::ostream &  ) const
pure virtual
virtual tree::rStm translate::Exp::un_cx ( const temp::Label t,
const temp::Label f 
)
pure virtual

Pretend THIS was a Cx: return the branching such that the resulting code jump to t if the conditional is satisfied, f otherwise.

Implemented in translate::Ix, translate::Nx, translate::Ex, and translate::Cx.

virtual tree::rExp translate::Exp::un_ex ( )
pure virtual

Pretend THIS was an Ex: return the expression part.

Implemented in translate::Ix, translate::Nx, translate::Ex, and translate::Cx.

virtual tree::rStm translate::Exp::un_nx ( )
pure virtual

Pretend THIS was an Nx: return the statement part.

Implemented in translate::Ix, translate::Nx, translate::Ex, and translate::Cx.


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