summaryrefslogtreecommitdiffstats
path: root/Sencha-lang/AST/UnaryExpression.h
blob: 7511d36f452f89b1ca8d745888b224abb57654b6 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
/*
 * UnaryExpression.h
 *
 *  Created on: Jan 1, 2013
 *      Author: att
 */

#ifndef UNARYEXPRESSION_H_
#define UNARYEXPRESSION_H_

#include "ASTExpression.h"

class UnaryExpression: public ASTExpression {
public:

	std::string oper;
	std::string get_operator() { return oper; }
	virtual void accept(Visitor * visitor) { visitor->visit(this); }

	virtual SenchaObject execute();
	virtual SenchaObject evaluate();

	UnaryExpression(ASTNode * argument, std::string oper);
	UnaryExpression();
	virtual ~UnaryExpression();
};

#endif /* UNARYEXPRESSION_H_ */