#include <tree.h>

Public Member Functions | |
| virtual void | emit (PreLinkBytecode &bytecodes) const |
| Generate bytecode. | |
| virtual unsigned | getStackDepth () const |
| Return the stack depth requirement for this node and its children. | |
| LoadNode (const SourcePos &sourcePos, unsigned varAddr) | |
| Constructor. | |
| virtual Node * | optimize (std::ostream *dump) |
| Optimize this node, return the optimized node. | |
| virtual std::string | toNodeName () const |
| Return a string representation of the name of this node. | |
| virtual std::string | toString () const |
| Return a string representation of this node. | |
| virtual ReturnType | typeCheck () const |
| Typecheck this node, throw an exception if there is any type violation. | |
Public Attributes | |
| unsigned | varAddr |
| address of variable to load from | |
Node for loading a variable on stack. no children
Definition at line 321 of file tree.h.
| Aseba::LoadNode::LoadNode | ( | const SourcePos & | sourcePos, | |
| unsigned | varAddr | |||
| ) | [inline] |
| virtual std::string Aseba::LoadNode::toNodeName | ( | ) | const [inline, virtual] |
Return a string representation of the name of this node.
Implements Aseba::Node.
| virtual ReturnType Aseba::LoadNode::typeCheck | ( | ) | const [inline, virtual] |
Typecheck this node, throw an exception if there is any type violation.
Reimplemented from Aseba::Node.
| unsigned Aseba::LoadNode::varAddr |