From 5efcf9dc1c55e852684668e735a2e12311b00b8e Mon Sep 17 00:00:00 2001 From: Kyle Gunger Date: Sat, 3 Aug 2024 20:25:35 -0400 Subject: sync small changes --- tnslc/parse/ast.tnsl | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) (limited to 'tnslc/parse/ast.tnsl') 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) -- cgit v1.2.3