adding RandomForStatement and fixing typo

This commit is contained in:
Florian Sattler
2013-06-01 03:14:49 +02:00
parent a853ed5ae9
commit 5300f7f6ee
6 changed files with 63 additions and 2 deletions

View File

@@ -0,0 +1,26 @@
#ifndef RANDOMFORSTATEMENT_H
#define RANDOMFORSTATEMENT_H
#include "AST/Expression.h"
#include "AST/Statement.h"
class RandomForStatement : public Statement
{
public:
RandomForStatement(Expression* init, Expression* prob, Expression* step, Statement* stmt);
virtual ~RandomForStatement();
virtual void accept(ASTVisitor *visitor);
Expression* getInit();
Expression* getProb();
Expression* getStep();
Statement* getStmt();
private:
Expression* init_;
Expression* prob_;
Expression* step_;
Statement* stmt_;
};
#endif // RANDOMFORSTATEMENT_H