From 069eb0fc2edf1f40fd1fff6584e430c111471859 Mon Sep 17 00:00:00 2001 From: Kyle Gunger Date: Mon, 12 Dec 2022 00:52:54 -0500 Subject: Evaluation of numeric literals --- tnslc/tnslc.tnsl | 13 ------------- 1 file changed, 13 deletions(-) (limited to 'tnslc/tnslc.tnsl') 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}) -- cgit v1.2.3