summaryrefslogtreecommitdiffstats
path: root/Sencha-lang/AST/RepeatStatement.h
diff options
context:
space:
mode:
Diffstat (limited to 'Sencha-lang/AST/RepeatStatement.h')
-rw-r--r--Sencha-lang/AST/RepeatStatement.h28
1 files changed, 28 insertions, 0 deletions
diff --git a/Sencha-lang/AST/RepeatStatement.h b/Sencha-lang/AST/RepeatStatement.h
new file mode 100644
index 0000000..89d6b89
--- /dev/null
+++ b/Sencha-lang/AST/RepeatStatement.h
@@ -0,0 +1,28 @@
+/*
+ * RepeatStatement.h
+ *
+ * Created on: Dec 9, 2012
+ * Author: attero
+ */
+
+#ifndef REPEATSTATEMENT_H_
+#define REPEATSTATEMENT_H_
+
+#include "ASTStatement.h"
+
+class RepeatStatement: public ASTStatement {
+public:
+ RepeatStatement(ASTNode * parent);
+ int how_many_times;
+ ASTStatement * body;
+ void add_iteration_number(SenchaObject so);
+ virtual void execute();
+ virtual void execute_quietly();
+ void add_body(ASTStatement * statement);
+
+
+ virtual std::string debug() ;
+ virtual ~RepeatStatement();
+};
+
+#endif /* REPEATSTATEMENT_H_ */