2 * Scilab ( http://www.scilab.org/ ) - This file is part of Scilab
3 * Copyright (C) 2010-2010 - DIGITEO - Bruno JOFRET
5 * Copyright (C) 2012 - 2016 - Scilab Enterprises
7 * This file is hereby licensed under the terms of the GNU GPL v2.0,
8 * pursuant to article 5.3.4 of the CeCILL v.2.1.
9 * This file was originally licensed under the terms of the CeCILL v2.1,
10 * and continues to be available under such terms.
11 * For more information, see the COPYING file which you should have received
12 * along with this program.
16 #ifndef __AST_STEPVISITOR_HXX__
17 #define __AST_STEPVISITOR_HXX__
21 #include "runvisitor.hxx"
22 #include "printvisitor.hxx"
26 class EXTERN_AST StepVisitor : public RunVisitorT<StepVisitor>
30 return new StepVisitor();
33 void visit(const SeqExp &e)
35 for (exps_t::const_iterator it = e.getExps().begin (), itEnd = e.getExps().end(); it != itEnd; ++it)
37 PrintVisitor *pv = new PrintVisitor(std::wcerr);
39 std::wcerr << std::endl;
44 void visit (const MatrixExp &e)
49 void visit (const MatrixLineExp &e)
54 void visit (const CellExp &e)
59 void visit (const StringExp &e)
64 void visit (const CommentExp &e)
69 void visit (const DoubleExp &e)
74 void visit (const BoolExp &e)
79 void visit (const NilExp &e)
84 void visit (const SimpleVar &e)
89 void visit (const ColonVar &e)
94 void visit (const DollarVar &e)
99 void visit (const ArrayListVar &e)
104 void visit (const FieldExp &e)
109 void visit (const OpExp &e)
114 void visit (const LogicalOpExp &e)
119 void visit (const AssignExp &e)
124 void visit (const CellCallExp &e)
129 void visit (const CallExp &e)
134 void visit (const IfExp &e)
139 void visit (const TryCatchExp &e)
144 void visit (const WhileExp &e)
149 void visit (const ForExp &e)
154 void visit (const BreakExp &e)
159 void visit (const ContinueExp &e)
164 void visit (const ReturnExp &e)
169 void visit (const SelectExp &e)
174 void visit (const CaseExp &e)
179 void visit (const ArrayListExp &e)
184 void visit (const AssignListExp &e)
189 void visit (const NotExp &e)
194 void visit (const TransposeExp &e)
199 void visit (const VarDec &e)
204 void visit (const FunctionDec &e)
209 void visit(const ListExp &e)
215 void visit(const OptimizedExp &e)
220 void visit(const MemfillExp &e)
225 void visit(const DAXPYExp &e)
230 void visit(const IntSelectExp &e)
235 void visit(const StringSelectExp &e)
242 #endif /* !__AST_STEPVISITOR_HXX__ */