add RandomIfStatement
This commit is contained in:
23
src/AST/RandomIfStatement.cpp
Normal file
23
src/AST/RandomIfStatement.cpp
Normal 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_;
|
||||
}
|
||||
Reference in New Issue
Block a user