|
Nearly CC
An educational compiler skeleton
|
HasOperand is a base class for NodeBase, which in turn is a base class for Node. More...
#include "has_operand.h"

Public Member Functions | |
| void | set_operand (const Operand &op) |
| Set the Node's Operand. More... | |
| bool | has_operand () const |
| Check whether this Node has a valid Operand. More... | |
| const Operand | get_operand () const |
| Get this Node's Operand. More... | |
HasOperand is a base class for NodeBase, which in turn is a base class for Node.
The idea is that each Node in an AST has an Operand which represents the location (register or memory) where the results of expression evaluation are stored. By default, the Operand is "invalid". The set_operand() member function must be called to set the Operand.
|
inline |
|
inline |
|
inline |