diff options
Diffstat (limited to 'mnml')
-rwxr-xr-x[-rw-r--r--] | mnml | 11 |
1 files changed, 9 insertions, 2 deletions
@@ -1,10 +1,17 @@ +#!/bin/env php + <?php require "vendor/autoload.php"; use Mnml\Lexer\Lexer; +use Mnml\Parser\Parser; + +$input = file_get_contents(realpath($argv[1])); -$input = file_get_contents(__DIR__ . "/test/test.mnml"); $lexer = new Lexer($input); $tokens = $lexer->lex(); -#var_dump($tokens); + +$parser = new Parser($tokens); +$nodes = $parser->parse(); +$parser->printTree(); |