summaryrefslogtreecommitdiffstats
path: root/Sencha-lang/AST/ProgramNode.h
blob: 1c8fc429d6307952c51631ace18345d49b54a000 (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
/*
 * ASTProgram.h
 *
 *  Created on: Nov 5, 2012
 *      Author: attero
 */

#ifndef PROGRAMNODE_H_
#define PROGRAMNODE_H_
#include <iostream>
#include "ASTNode.h"
#include "ASTStatement.h"

class ProgramNode : public ASTNode {
public:
	ProgramNode();
	void add_statement(ASTStatement * statement);
	virtual ~ProgramNode();
	virtual void execute();
	virtual void execute_last();
	virtual SenchaObject evaluate() { return evaluate_last(); }
	SenchaObject evaluate_last();
	virtual void accept(Visitor * visitor);
};

#endif /* PROGRAMNODE_H_ */