diff options
author | Kyle Gunger <kgunger12@gmail.com> | 2021-12-11 23:32:16 -0500 |
---|---|---|
committer | Kyle Gunger <kgunger12@gmail.com> | 2021-12-11 23:32:16 -0500 |
commit | dc8f1a06f086bda90e90a5386d4619d54efb1d0d (patch) | |
tree | 7850d7ce6a7c77ab817779cd8bf4b2c122252069 /src/texec/libtnsl.go | |
parent | c3b9e4a8be18338ed5da223037d6259eaef54e8f (diff) |
[EVAL] Still needs some work
+ modules now define variables properly
+ fixed some bugs in eval.tnsl with type checking
~ Needs to support arrays and composites, but doesn't yet.
Diffstat (limited to 'src/texec/libtnsl.go')
-rw-r--r-- | src/texec/libtnsl.go | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/src/texec/libtnsl.go b/src/texec/libtnsl.go index b1c1907..a5d4589 100644 --- a/src/texec/libtnsl.go +++ b/src/texec/libtnsl.go @@ -51,6 +51,9 @@ var ( tFloat = TType{Pre: []string{}, T: TArtifact{Path: []string{}, Name:"float"}, Post: ""} tCharp = TType{Pre: []string{}, T: TArtifact{Path: []string{}, Name:"charp"}, Post: ""} tNull = TType{Pre: []string{}, T: TArtifact{Path: []string{}, Name: "null"}, Post: ""} + + // used only in module definintion + tEnum = TType{Pre: []string{}, T: TArtifact{Path: []string{}, Name: "enum"}, Post: ""} ) // tells if the stub supports a function |