Aseba::IfWhenNode Struct Reference
[AESL Compiler]

#include <tree.h>

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

List of all members.

Public Member Functions

virtual void emit (PreLinkBytecode &bytecodes) const
 Generate bytecode.
 IfWhenNode (const SourcePos &sourcePos)
 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

bool edgeSensitive
 if true, true block is triggered only if previous comparison was false ("when" block). If false, true block is triggered every time comparison is true
unsigned endLine
 line of end keyword

Detailed Description

Node for "if" and "when". children[0] is expression children[1] is true block children[2] is false block

Definition at line 130 of file tree.h.


Constructor & Destructor Documentation

Aseba::IfWhenNode::IfWhenNode ( const SourcePos sourcePos  )  [inline]

Constructor.

Definition at line 136 of file tree.h.


Member Function Documentation

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

Return a string representation of the name of this node.

Implements Aseba::Node.

Definition at line 142 of file tree.h.


Member Data Documentation

if true, true block is triggered only if previous comparison was false ("when" block). If false, true block is triggered every time comparison is true

Definition at line 132 of file tree.h.

line of end keyword

Definition at line 133 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