From e70046f5e8a068369ac73aae47bf4aa7ec90d743 Mon Sep 17 00:00:00 2001 From: Kyle Gunger Date: Mon, 1 Nov 2021 21:49:17 -0400 Subject: [EXEC] flushout libtnsl stub a bit --- src/exec.go | 20 +++----------------- 1 file changed, 3 insertions(+), 17 deletions(-) (limited to 'src/exec.go') diff --git a/src/exec.go b/src/exec.go index f92f435..dbdbf72 100644 --- a/src/exec.go +++ b/src/exec.go @@ -17,7 +17,6 @@ package main import "fmt" -import "tparse" import "texec" import "flag" @@ -27,20 +26,7 @@ func main() { flag.Parse() - if err != nil { - fmt.Println(err.Error()) - return - } - - tokens := tparse.TokenizeFile(*inputFile) - - switch *writeLevel { - case 0: - fd.WriteString(fmt.Sprint(tokens) + "\n") - case 1: - tree := tparse.MakeTree(&tokens, *inputFile) - fd.WriteString(fmt.Sprint(tree) + "\n") - } - - fd.Close() + world := texec.BuildWorld(*inputFile) + + texec.EvalTNSL(&world, *progFlags) } \ No newline at end of file -- cgit v1.2.3