sencha-lang/Sencha-lang/AST/ProgramNode.h

30 lines
616 B
C
Raw Normal View History

2012-12-03 22:40:47 +00:00
/*
* ASTProgram.h
*
* Created on: Nov 5, 2012
* Author: attero
*/
#ifndef PROGRAMNODE_H_
#define PROGRAMNODE_H_
#include <iostream>
#include "ASTNode.h"
#include "ASTStatement.h"
/**
* ProgramNode is always first node. It stores all statements.
*/
2012-12-03 22:40:47 +00:00
class ProgramNode : public ASTNode {
public:
ProgramNode();
void add_statement(ASTStatement * statement);
2012-12-03 22:40:47 +00:00
virtual ~ProgramNode();
virtual void execute();
2012-12-08 19:59:05 +00:00
virtual void execute_last();
virtual SenchaObject evaluate() { return evaluate_last(); }
SenchaObject evaluate_last();
virtual void accept(Visitor * visitor);
2012-12-03 22:40:47 +00:00
};
#endif /* PROGRAMNODE_H_ */