summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorKyle Gunger <kgunger12@gmail.com>2024-08-03 20:25:35 -0400
committerKyle Gunger <kgunger12@gmail.com>2024-08-03 20:25:35 -0400
commit5efcf9dc1c55e852684668e735a2e12311b00b8e (patch)
tree2b210d00befe43b8fdcf289232b28ca08c2c6bad
parent7b9338fe51ad06675dec6ae6e35b0d7d949c1523 (diff)
sync small changes
-rw-r--r--tnslc/parse/ast.tnsl6
-rw-r--r--tnslc/test.tnsl6
2 files changed, 10 insertions, 2 deletions
diff --git a/tnslc/parse/ast.tnsl b/tnslc/parse/ast.tnsl
index 0102146..d3b56d2 100644
--- a/tnslc/parse/ast.tnsl
+++ b/tnslc/parse/ast.tnsl
@@ -81,7 +81,9 @@ struct Node {
# AST values
/; _ast_value (~utils.File fin, ~Node mod, ~Token first)
-
+ /; if (first`.eq("{\0") == true)
+ _ast_list_value(fin, mod, first)
+ ;/
;/
@@ -181,7 +183,7 @@ struct Node {
_type_helper_pre(fin, ~typ, first)
# Check to see if this is a function pointer type
- /; if (first`.eq("void\0") && typ.sub.count == 0)
+ /; if (first`.eq("void\0") == true)
Node ktp
ktp.init(NTYPE_ID, first`.data)
typ.sub.push(~ktp)
diff --git a/tnslc/test.tnsl b/tnslc/test.tnsl
index 3eff47d..d75fe24 100644
--- a/tnslc/test.tnsl
+++ b/tnslc/test.tnsl
@@ -2,6 +2,12 @@
~uint lmao
+user.tp a
+
+user.tp(asd, asd) b
+
+~{2}user c
+
/; whatev (~uint8 a) [uint8]
return a{0}
;/