summaryrefslogtreecommitdiff
path: root/mnml
diff options
context:
space:
mode:
Diffstat (limited to 'mnml')
-rwxr-xr-xmnml6
1 files changed, 5 insertions, 1 deletions
diff --git a/mnml b/mnml
index 33f7ca0..32937d5 100755
--- a/mnml
+++ b/mnml
@@ -4,6 +4,7 @@
require "vendor/autoload.php";
+use Mnml\Interpreter\Interpreter;
use Mnml\Lexer\Lexer;
use Mnml\Parser\Parser;
@@ -14,4 +15,7 @@ $tokens = $lexer->lex();
$parser = new Parser($tokens);
$nodes = $parser->parse();
-$parser->printTree();
+#$parser->printTree();
+
+$compiler = new Interpreter($nodes);
+$compiler->compile([array_slice($argv, 1)]);