summaryrefslogtreecommitdiff
path: root/src/exec.go
diff options
context:
space:
mode:
Diffstat (limited to 'src/exec.go')
-rw-r--r--src/exec.go20
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