diff options
Diffstat (limited to 'tnslc/tnslc.tnsl')
-rw-r--r-- | tnslc/tnslc.tnsl | 13 |
1 files changed, 0 insertions, 13 deletions
diff --git a/tnslc/tnslc.tnsl b/tnslc/tnslc.tnsl index 129ef44..8c2e18d 100644 --- a/tnslc/tnslc.tnsl +++ b/tnslc/tnslc.tnsl @@ -23,26 +23,13 @@ :include "compile/isa_x86.tnsl" ;/ - /; main ({}{}charp args) [int] - /; if (len args < 1) ;tnsl.io.println("Usage: tnslc [file in]") ;return 1 ;/ ;{}charp file = args{0} - - ;tnsl.io.File src = tnsl.io.readFile(file) - - ;~{}tnslc.Token psrc = tnslc.parse.tokenize(src) - - ;src.close() - - ;tnsl.io.print(len psrc`) - ;tnsl.io.println(" tokens parsed.") - - ;tnslc.print_tokens(psrc) # ;tnslc.Node tree_node = tnslc.ast.make_tree(psrc, args{0}) |