|
Nearly CC
An educational compiler skeleton
|
The Node class will inherit from this type, so you can use it to define any attributes and methods that Node objects should have (constant value, results of semantic analysis, code generation info, etc.) More...
#include "node_base.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... | |
The Node class will inherit from this type, so you can use it to define any attributes and methods that Node objects should have (constant value, results of semantic analysis, code generation info, etc.)
Because NodeBase inherits from HasOperand, each Node automatically stores an Operand. This is useful for code generation: when generating code to evaluate an expression, HighLevelCodegen can set the Node's Operation to indicate the location where the result of the evaluation is stored.
|
inlineinherited |
|
inlineinherited |
|
inlineinherited |