28#include "../base/Evaluator.h"
29#include "../base/grammar.tab.hpp"
30#include "../base/PNode.h"
31#include "../base/Loader.h"
32#include "../base/PComplexData.h"
33#include "../base/PList.h"
34#include "../libs/PEBLObjects.h"
46 setenv(
"SDL_VIDEODRIVER",
"dga",1);
47 setenv(
"SDL_VIDEODRIVER",
"x11",1);
58 cerr <<
"---------Program Parsed---------" << endl;
60 cerr <<
"---------Loading Program---------" << endl;
66 cerr <<
"Analyzing code for functions." << endl;
69 cerr <<
"Loading Library functions." << endl;
72 cerr <<
"Loaded Functions: " << endl;
77 cerr <<
"Creating a PlatformEnvironment\n";
81 cerr <<
"---------Creating Evaluator-----" << endl;
86 cout <<
"Getting list inside list: " << *pList <<endl;
94 cerr <<
"--------Getting main function---" << endl;
100 cerr <<
"---------Evaluating Program-----" << endl;
107 cerr <<
"Error: Can't evaluate program" << endl;
118 cout <<
"This testing program is deprecated.\n";
int main(int argc, char **argv)
int PEBLInterpret(int argc, char **argv)
This class has got everything you need to evaluate stuff.
bool Evaluate(const PNode *node)
void LoadUserFunctions(OpNode *node)
void LoadLibraryFunctions()
void FindFunctions(const PNode *Node)
PNode * GetMainPEBLFunction()
void MakeEnvironment(PEBLVideoMode mode, PEBLVideoDepth depth, bool windowed, bool resizeable, bool unicode)
This function instantiates the namespace-viewable.