Aseba::ImmediateNode Struct Reference
[AESL Compiler]

#include <tree.h>

Inheritance diagram for Aseba::ImmediateNode:
Inheritance graph
[legend]

List of all members.

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.
 ImmediateNode (const SourcePos &sourcePos, int value)
 Constructor.
virtual Nodeoptimize (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

int value
 value to push on stack

Detailed Description

Node for pushing immediate value on stack. Might generate either Small Immediate or Large Immediate bytecode depending on the range of value no children

Definition at line 304 of file tree.h.


Constructor & Destructor Documentation

Aseba::ImmediateNode::ImmediateNode ( const SourcePos sourcePos,
int  value 
) [inline]

Constructor.

Definition at line 309 of file tree.h.


Member Function Documentation

virtual std::string Aseba::ImmediateNode::toNodeName (  )  const [inline, virtual]

Return a string representation of the name of this node.

Implements Aseba::Node.

Definition at line 316 of file tree.h.

virtual ReturnType Aseba::ImmediateNode::typeCheck (  )  const [inline, virtual]

Typecheck this node, throw an exception if there is any type violation.

Reimplemented from Aseba::Node.

Definition at line 311 of file tree.h.


Member Data Documentation

value to push on stack

Definition at line 306 of file tree.h.


The documentation for this struct was generated from the following files:
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Defines


asebaros
Author(s): $author
autogenerated on Mon Sep 5 08:42:14 2011