MicroModelicaCCompiler
4.5.3
|
Go to the documentation of this file.
27 #include "../util/ast_util.hpp"
60 stringstream ret(stringstream::out);
62 ret <<
"CLASS[nullptr]";
75 : _decl_list(decl_list), _type(type), _indexes(indexes), _origin(nullptr), _tp(tp)
81 stringstream ret(stringstream::out);
82 AST_DeclarationListIterator it, itt;
106 AST_ExpressionListIterator exp_it;
109 int size =
indexes()->size(), i = 0;
113 if (i < size) ret <<
",";
127 ostream &
operator<<(ostream &os,
const AST_Element_Component &c)
141 stringstream ret(stringstream::out);
142 ret <<
"EXTENDS " <<
_name;
156 stringstream ret(stringstream::out);
157 ret <<
"IMPORT[" <<
_name <<
"]";
178 os <<
" \"" << c.
string() <<
"\" ";
199 : _name(name), _indexes(indexes), _mod(m), _comm(nullptr)
205 stringstream ret(stringstream::out);
206 AST_ExpressionListIterator it;
210 int size =
indexes()->size(), i = 0;
214 if (i < size) ret <<
",";
AST_ExpressionList _indexes
AST_Modification modification() const
virtual ElementType elementType()
void setOrigin(AST_Class c)
AST_Element_ExtendsClause_(string name)
void AST_ListPrint(list< T1 > *l1, ostream &ret, string sec_name="", string separator=" ", string opener="", string closer="", bool block=false)
virtual string print() const =0
GET_AS_IMP(Element, ClassWrapper)
AST_DeclarationList nameList()
virtual ElementType elementType()
ostream & operator<<(ostream &os, const AST_Element &e)
virtual ElementType elementType()
virtual ElementType elementType()
AST_DeclarationList _decl_list
AST_Element_ClassWrapper_(AST_Class c)
AST_Element_Component_(AST_DeclarationList decl_list, string type, AST_TypePrefix tp, AST_ExpressionList index)
AST_TypePrefix typePrefix()
int AST_Length(list< T1 > *l1)
AST_Comment comment() const
void setComment(AST_Comment c)
virtual ElementType elementType()
virtual void visit(AST_Class x)=0
AST_Declaration_(string name, AST_ExpressionList indexes, AST_Modification)
AST_ExpressionList indexes() const
AST_ExpressionList _indexes
void accept(AST_Visitor *visitor)
AST_Element_ImportClause_(string name)
AST_ExpressionList indexes() const
#define current_element(it)