summaryrefslogtreecommitdiff
path: root/src/texec/worldbuilder.go
diff options
context:
space:
mode:
Diffstat (limited to 'src/texec/worldbuilder.go')
-rw-r--r--src/texec/worldbuilder.go12
1 files changed, 10 insertions, 2 deletions
diff --git a/src/texec/worldbuilder.go b/src/texec/worldbuilder.go
index 54f87f3..8e5648f 100644
--- a/src/texec/worldbuilder.go
+++ b/src/texec/worldbuilder.go
@@ -16,13 +16,21 @@
package texec
-import "tparse"
+import (
+ "tparse"
+ "path"
+)
/**
worldbuilder.go - take in a file name and construct a TWorld based on it.
*/
+func parseFile(p string) tparse.Node {
+ tokens := tparse.TokenizeFile(p)
+ return tparse.MakeTree(&(tokens), p)
+}
+
// BuildWorld creates a new TWorld by parsing a main file and recursively parsing imports.
-func BuildWorld(file string) *TWorld {
+func BuildWorld(file string) TWorld {
return nil
}