Main Page | Namespace List | Class Hierarchy | Class List | File List | Namespace Members | Class Members | File Members

AST::Loop Class Reference

for or while or do while More...

#include <ast.h>

Inheritance diagram for AST::Loop:

AST::Node List of all members.

Public Member Functions

 Loop ()
virtual void to3ACFile (FILE *f)
 convert me to 3ac - subclassed

Public Attributes

AttributeProxy type
 for, while, dowhile
AttributeProxy declaration
 int i = 0
AttributeProxy condition
 i < 5
AttributeProxy increment
 i++
AttributeProxy statements
 func(i)

Private Types

typedef Node super

Detailed Description

for or while or do while

Definition at line 178 of file ast.h.


Member Typedef Documentation

typedef Node AST::Loop::super [private]
 

Definition at line 179 of file ast.h.


Constructor & Destructor Documentation

AST::Loop::Loop  )  [inline]
 

Definition at line 181 of file ast.h.

00181           :
00182         super("Conditional"),
00183         type       (this->addAttribute("type")),
00184         declaration(this->addAttribute("declaration")),
00185         condition  (this->addAttribute("condition")),
00186         increment  (this->addAttribute("increment")),
00187         statements (this->addAttribute("statements"))
00188     {
00189     }
    virtual void to3ACFile(FILE* f){}


Member Function Documentation

virtual void AST::Loop::to3ACFile FILE *  f  )  [inline, virtual]
 

convert me to 3ac - subclassed

Implements AST::Node.

Definition at line 190 of file ast.h.

00190 {}


Member Data Documentation

AttributeProxy AST::Loop::condition
 

i < 5

Definition at line 196 of file ast.h.

AttributeProxy AST::Loop::declaration
 

int i = 0

Definition at line 194 of file ast.h.

AttributeProxy AST::Loop::increment
 

i++

Definition at line 198 of file ast.h.

AttributeProxy AST::Loop::statements
 

func(i)

Definition at line 200 of file ast.h.

AttributeProxy AST::Loop::type
 

for, while, dowhile

Definition at line 192 of file ast.h.


The documentation for this class was generated from the following file:
Generated on Thu Oct 20 12:00:04 2005 for ASTree by  doxygen 1.4.2-20050421