From 289c1fe3dd2f29e2511b6bb376582f8791179a9b Mon Sep 17 00:00:00 2001 From: Kyle Gunger Date: Sun, 26 Jun 2022 01:18:27 -0400 Subject: [AST] Parentheticals + Add support for parentheticals + Add uint as a valid type for the evaluator --- src/texec/libtnsl.go | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'src/texec/libtnsl.go') diff --git a/src/texec/libtnsl.go b/src/texec/libtnsl.go index bb0ce7d..91d65ae 100644 --- a/src/texec/libtnsl.go +++ b/src/texec/libtnsl.go @@ -26,7 +26,8 @@ import ( Parts included: - io.print - io.println - - io.openFile + - io.readFile + - io.writeFile - io.File API for file objects Types included: @@ -46,6 +47,7 @@ var ( tFile = TType{Pre: []string{}, T: TArtifact{Path: []string{"tnsl", "io"}, Name: "File"}, Post: ""} tString = TType{Pre: []string{"{}"}, T: TArtifact{Path: []string{}, Name:"charp"}, Post: ""} tInt = TType{Pre: []string{}, T: TArtifact{Path: []string{}, Name:"int"}, Post: ""} + tUint = TType{Pre: []string{}, T: TArtifact{Path: []string{}, Name:"uint"}, Post: ""} tByte = TType{Pre: []string{}, T: TArtifact{Path: []string{}, Name:"uint8"}, Post: ""} tByteArray = TType{Pre: []string{"{}"}, T: TArtifact{Path: []string{}, Name:"uint8"}, Post: ""} tFloat = TType{Pre: []string{}, T: TArtifact{Path: []string{}, Name:"float"}, Post: ""} -- cgit v1.2.3