#include <tree.h>
Public Member Functions | |
virtual void | emit (PreLinkBytecode &bytecodes) const |
Generate bytecode. | |
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. | |
UnaryArithmeticNode (const SourcePos &sourcePos, AsebaUnaryOperator op, Node *child) | |
Constructor. | |
UnaryArithmeticNode (const SourcePos &sourcePos) | |
Constructor. | |
Public Attributes | |
AsebaUnaryOperator | op |
operator |
Node for unary arithmetic children[0] is the expression to negate
Definition at line 285 of file tree.h.
Aseba::UnaryArithmeticNode::UnaryArithmeticNode | ( | const SourcePos & | sourcePos | ) | [inline] |
virtual std::string Aseba::UnaryArithmeticNode::toNodeName | ( | ) | const [inline, virtual] |
Return a string representation of the name of this node.
Implements Aseba::Node.