MicroModelicaCCompiler  4.5.3
process_statement.hpp
Go to the documentation of this file.
1 /*****************************************************************************
2 
3  This file is part of QSS Solver.
4 
5  QSS Solver is free software: you can redistribute it and/or modify
6  it under the terms of the GNU General Public License as published by
7  the Free Software Foundation, either version 3 of the License, or
8  (at your option) any later version.
9 
10  QSS Solver is distributed in the hope that it will be useful,
11  but WITHOUT ANY WARRANTY; without even the implied warranty of
12  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
13  GNU General Public License for more details.
14 
15  You should have received a copy of the GNU General Public License
16  along with QSS Solver. If not, see <http://www.gnu.org/licenses/>.
17 
18  ******************************************************************************/
19 
20 #ifndef PROCESS_STATEMENT_H_
21 #define PROCESS_STATEMENT_H_
22 
23 #include <ast/ast_types.hpp>
24 #include <ast/statement.hpp>
25 
26 namespace MicroModelica {
27 namespace Util {
28 
29 namespace STATEMENT {
30 typedef enum { LHS, RHS, LHS_DISCRETES, LHS_STATES } AssignTerm;
31 }
32 
33 void processStatement(AST_Statement stm);
34 
35 void applyReduction(AST_Statement_Assign asg, AST_StatementList stms, AST_StatementListIterator stm_it);
36 
37 void reduceStatement(AST_Statement stm, AST_StatementList stms, AST_StatementListIterator stm_it);
38 
39 } // namespace Util
40 } // namespace MicroModelica
41 #endif /* PROCESS_STATEMENT_H_ */
MicroModelica::Util::STATEMENT::AssignTerm
AssignTerm
Definition: process_statement.hpp:81
MicroModelica::Util::STATEMENT::LHS
@ LHS
Definition: process_statement.hpp:98
MicroModelica::Util::STATEMENT::RHS
@ RHS
Definition: process_statement.hpp:98
MicroModelica::Util::reduceStatement
void reduceStatement(AST_Statement stm, AST_StatementList stms, AST_StatementListIterator stm_it)
Definition: process_statement.cpp:162
MicroModelica::Util::STATEMENT::LHS_STATES
@ LHS_STATES
Definition: process_statement.hpp:98
MicroModelica::Util::processStatement
void processStatement(AST_Statement stm)
Definition: process_statement.cpp:52
MicroModelica
Definition: files.cpp:45
ast_types.hpp
MicroModelica::Util::applyReduction
void applyReduction(AST_Statement_Assign asg, AST_StatementList stms, AST_StatementListIterator stm_it)
Definition: process_statement.cpp:146
MicroModelica::Util::STATEMENT::LHS_DISCRETES
@ LHS_DISCRETES
Definition: process_statement.hpp:98
statement.hpp