diff options
Diffstat (limited to 'mnml')
-rwxr-xr-x | mnml | 6 |
1 files changed, 5 insertions, 1 deletions
@@ -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)]); |