add RandomIfStatement

This commit is contained in:
Florian Sattler
2013-06-01 03:02:21 +02:00
parent e2dcf5f507
commit a2ee427f57
4 changed files with 48 additions and 0 deletions

View File

@@ -0,0 +1,23 @@
#include "AST/RandomIfStatement.h"
#include "AST/ASTVisitor.h"
RandomIfStatement::RandomIfStatement(Expression *prob, Statement *stmt) : prob_(prob),stmt_(stmt)
{
//
}
RandomIfStatement::~RandomIfStatement() {
//
}
void RandomIfStatement::accept(ASTVisitor *visitor) {
visitor->visit(this);
}
Expression* RandomIfStatement::getProb() {
return prob_;
}
Statement* RandomIfStatement::getStmt() {
return stmt_;
}