#include <ast.h>
Inheritance diagram for AST::List:
Public Member Functions | |
List () | |
List (vector< Node * > vec) | |
void | addChild (Node *child) |
virtual void | to3ACFile (FILE *f) |
convert me to 3ac - subclassed | |
Public Attributes | |
vector< Node * > | list |
Private Types | |
typedef Node | super |
Definition at line 63 of file ast.h.
|
|
|
Definition at line 66 of file ast.h. References AST::Node::NODE_LIST, and AST::Node::nodeType. 00066 : 00067 super("List") 00068 { 00069 this->nodeType = NODE_LIST; 00070 } List(vector<Node*> vec):
|
|
Definition at line 71 of file ast.h. References addChild(), AST::Node::NODE_LIST, and AST::Node::nodeType. 00071 : 00072 super("List") 00073 { 00074 this->nodeType = NODE_LIST; 00075 for( int i = 0; i < vec.size(); i ++){ 00076 this->addChild(vec[i]); 00077 } 00078 } void addChild(Node* child){
|
|
Definition at line 79 of file ast.h. References list. Referenced by List(). 00079 { 00080 list.push_back(child); 00081 }
|
|
convert me to 3ac - subclassed
Implements AST::Node. Definition at line 82 of file ast.h.
|
|
Definition at line 83 of file ast.h. Referenced by addChild(), and AST::Node::toASTFile(). |