fix assignment and adding IfStatement
This commit is contained in:
23
inc/AST/IfStatement.h
Normal file
23
inc/AST/IfStatement.h
Normal file
@@ -0,0 +1,23 @@
|
||||
#ifndef IFSTATEMENT_H
|
||||
#define IFSTATEMENT_H
|
||||
|
||||
#include "AST/Expression.h"
|
||||
#include "AST/Statement.h"
|
||||
|
||||
class IfStatement : public Statement
|
||||
{
|
||||
public:
|
||||
IfStatement(Expression* cond, Statement* stmt);
|
||||
virtual ~IfStatement();
|
||||
|
||||
virtual void accept(ASTVisitor *visitor);
|
||||
|
||||
Expression* getCond();
|
||||
Statement* getStmt();
|
||||
private:
|
||||
Expression* cond_;
|
||||
Statement* stmt_;
|
||||
|
||||
};
|
||||
|
||||
#endif // IFSTATEMENT_H
|
||||
Reference in New Issue
Block a user