diff options
author | Kyle Gunger <kgunger12@gmail.com> | 2021-11-01 21:49:17 -0400 |
---|---|---|
committer | Kyle Gunger <kgunger12@gmail.com> | 2021-11-01 21:49:17 -0400 |
commit | e70046f5e8a068369ac73aae47bf4aa7ec90d743 (patch) | |
tree | 2878dc722c2eb9f82c5f8f4a75199e1af0f69ccf /src/exec.go | |
parent | b605d4f7cc28129975bcabd5e72715492244a6b8 (diff) |
[EXEC] flushout libtnsl stub a bit
Diffstat (limited to 'src/exec.go')
-rw-r--r-- | src/exec.go | 20 |
1 files changed, 3 insertions, 17 deletions
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 |