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/texec/world.go | 18 ++++++++++-------- 1 file changed, 10 insertions(+), 8 deletions(-) (limited to 'src/texec/world.go') diff --git a/src/texec/world.go b/src/texec/world.go index 79cc88c..d87119d 100644 --- a/src/texec/world.go +++ b/src/texec/world.go @@ -16,7 +16,9 @@ package texec -// TVaraiable represents a single variable in the program +import "tparse" + +// TVariable represents a single variable in the program type TVariable struct { Type string Data interface{} @@ -25,27 +27,27 @@ type TVariable struct { // TPath represents a pointer to the current module and file // that the thread is working in. type TPath struct { - Module []string, + Module []string Artifact string } // TContext represents a single thread. type TContext struct { - CallStack []Node, - CallEnv []TPath, + CallStack []tparse.Node + CallEnv []TPath VarMap []map[string]TVariable } // TModule represents a collection of files and sub-modules in a program type TModule struct { - Files []Node, + Files []tparse.Node Globals []map[string]TVariable Sub []TModule } // TWorld represents the full program type TWorld struct { - Modules []TModule, - MainPath TPath, - MainFunc Node + Modules []TModule + MainPath TPath + MainFunc tparse.Node } -- cgit v1.2.3