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"
|
|
|
|
|
|
|
|
class ProgramNode : public ASTNode {
|
|
|
|
public:
|
|
|
|
ProgramNode();
|
2012-12-05 22:27:03 +00:00
|
|
|
std::string debug();
|
|
|
|
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();
|
2012-12-03 22:40:47 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
#endif /* PROGRAMNODE_H_ */
|