MicroModelicaCCompiler
4.5.3
|
Go to the documentation of this file.
20 #ifndef AST_STATEMENT_H_
21 #define AST_STATEMENT_H_
25 #include "../util/macros.hpp"
26 #include "../util/util_types.hpp"
34 virtual string print()
const = 0;
42 GET_AS(Statement, OutputAssigment);
59 AST_Statement_When_(AST_Expression cond, AST_StatementList, AST_Statement_ElseList, AST_Comment);
80 AST_Expression
exp()
const;
82 void setLHS(AST_Expression_ComponentReference comp_ref);
83 AST_Expression_ComponentReference
lhs()
const;
87 AST_Expression_ComponentReference
_lhs;
93 AST_Statement_If_(AST_Expression cond, AST_StatementList true_st, AST_Statement_ElseList, AST_StatementList false_st);
98 AST_Statement_ElseList
else_if()
const;
110 string print()
const;
123 string print()
const;
136 string print()
const;
138 AST_Expression_ComponentReference
function()
const;
145 AST_Expression_ComponentReference
_func;
void accept(AST_Visitor *visitor)
AST_Expression condition() const
AST_Statement_OutputAssigment_(AST_ExpressionList, AST_Expression_ComponentReference, AST_ExpressionList)
void accept(AST_Visitor *visitor)
void setExp(AST_Expression exp)
AST_ExpressionList arguments() const
std::string functionName()
virtual StatementType statementType()
AST_Statement_ElseList _else_list
AST_StatementList statements() const
AST_Comment comment() const
AST_StatementList _true_st
AST_Statement_ElseList else_if() const
virtual StatementType statementType()
AST_ExpressionList _out_exps
AST_StatementList statements() const
AST_Statement_Else_(AST_Expression cond, AST_StatementList sts)
AST_Statement_While_(AST_Expression cond, AST_StatementList)
AST_Statement_ElseList _else_list
AST_Statement_When_(AST_Expression cond, AST_StatementList, AST_Statement_ElseList, AST_Comment)
virtual StatementType statementType()
AST_StatementList statements() const
AST_Expression_ComponentReference _func
AST_Expression condition() const
std::string _function_name
AST_ExpressionList out_expressions() const
AST_Expression_ComponentReference _lhs
virtual StatementType statementType()
AST_Expression exp() const
DEFINE_CLASS_PRINTER(AST_Statement)
AST_Expression_ComponentReference lhs() const
AST_StatementList _false_st
void setLHS(AST_Expression_ComponentReference comp_ref)
virtual StatementType statementType()=0
virtual string print() const =0
virtual StatementType statementType()
virtual StatementType statementType()
AST_Expression condition() const
AST_StatementList statements() const
AST_Expression condition() const
AST_StatementList else_statements() const
AST_Statement_Assign_(AST_Expression_ComponentReference cr, AST_Expression exp)
AST_ForIndexList forIndexList() const
AST_Statement_ElseList else_when() const
AST_StatementList statements() const
AST_Statement_If_(AST_Expression cond, AST_StatementList true_st, AST_Statement_ElseList, AST_StatementList false_st)
AST_Statement_For_(AST_ForIndexList index, AST_StatementList)
virtual StatementType statementType()
virtual StatementType statementType()