From dc8f1a06f086bda90e90a5386d4619d54efb1d0d Mon Sep 17 00:00:00 2001 From: Kyle Gunger Date: Sat, 11 Dec 2021 23:32:16 -0500 Subject: [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. --- src/texec/libtnsl.go | 3 +++ 1 file changed, 3 insertions(+) (limited to 'src/texec/libtnsl.go') 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 -- cgit v1.2.3