Work on evaluation
This commit is contained in:
@@ -5,15 +5,23 @@
|
||||
#define PORYGONLANG_SCRIPT_HPP
|
||||
|
||||
#include <string>
|
||||
#include <boost/any.hpp>
|
||||
#include "Diagnostics/Diagnostics.hpp"
|
||||
#include "Binder/BoundStatements/BoundStatement.hpp"
|
||||
class Script;
|
||||
class Evaluator;
|
||||
#include "Evaluator/Evaluator.hpp"
|
||||
|
||||
using namespace std;
|
||||
|
||||
class Script {
|
||||
explicit Script(){
|
||||
Diagnostics = new class Diagnostics();
|
||||
};
|
||||
friend class Evaluator;
|
||||
|
||||
boost::any* _lastValue;
|
||||
|
||||
Evaluator* _evaluator;
|
||||
|
||||
explicit Script();
|
||||
|
||||
void Parse(string script);
|
||||
BoundScriptStatement* BoundScript;
|
||||
@@ -22,6 +30,12 @@ public:
|
||||
Diagnostics* Diagnostics;
|
||||
|
||||
~Script();
|
||||
|
||||
void Evaluate();
|
||||
|
||||
boost::any* GetLastValue(){
|
||||
return _lastValue;
|
||||
};
|
||||
};
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user