]> git.localhorst.tv Git - l2e.git/blobdiff - src/main.cpp
started an interpreter for parsed sources
[l2e.git] / src / main.cpp
index ddd6b7adcda7cefc261bbb074316eccc1334d6ab..7a8b425d1a8bea52ddb3f302556f8c1ca5923d3e 100644 (file)
@@ -25,6 +25,7 @@
 #include "graphics/Menu.h"
 #include "graphics/SimpleAnimation.h"
 #include "graphics/Sprite.h"
+#include "loader/Interpreter.h"
 #include "loader/ParsedSource.h"
 #include "loader/Parser.h"
 #include "sdl/InitImage.h"
@@ -57,6 +58,7 @@ using graphics::Gauge;
 using graphics::Menu;
 using graphics::SimpleAnimation;
 using graphics::Sprite;
+using loader::Interpreter;
 using loader::ParsedSource;
 using loader::Parser;
 using sdl::InitImage;
@@ -80,8 +82,9 @@ int main(int argc, char **argv) {
                ParsedSource source;
                Parser parser("test-data/test.l2s", source);
                parser.Parse();
-
                cout << source;
+               Interpreter intp(source);
+               intp.ReadSource();
 
                return 0;