#include <ast.h>
Inheritance diagram for AST::Loop:
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 |
Definition at line 178 of file ast.h.
|
|
|
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){}
|
|
convert me to 3ac - subclassed
Implements AST::Node. Definition at line 190 of file ast.h.
|
|
i < 5
|
|
int i = 0
|
|
i++
|
|
func(i)
|
|
for, while, dowhile
|