about summary refs log tree commit diff
path: root/boot/tree.c
diff options
context:
space:
mode:
authorMel <mel@rnrd.eu>2025-07-06 03:32:07 +0200
committerMel <mel@rnrd.eu>2025-07-06 03:32:07 +0200
commitebd176b8e7eb14060375a28d6ac50500d9d2c808 (patch)
tree6c79ac631b5b8a4c025c09940a4a0fb1c71dd129 /boot/tree.c
parent620d82a5e314a82784e02b4af387a67d53242149 (diff)
downloadcatskill-ebd176b8e7eb14060375a28d6ac50500d9d2c808.tar.zst
catskill-ebd176b8e7eb14060375a28d6ac50500d9d2c808.zip
Parse variadic parameters in function definitions
Signed-off-by: Mel <mel@rnrd.eu>
Diffstat (limited to 'boot/tree.c')
-rw-r--r--boot/tree.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/boot/tree.c b/boot/tree.c
index 3c808f8..9ea9e6f 100644
--- a/boot/tree.c
+++ b/boot/tree.c
@@ -530,6 +530,9 @@ struct Type_Node
     // it is assigned to, e.g. `x int`, `string y`, etc.
     // this is the name of that binding, for ease of listing.
     struct String value_name;
+    // true if the type is used as a variadic parameter.
+    // e.g. `fun (format string, ...args string)`.
+    bool variadic;
 
     // if type is within a group of multiple types,
     // points to the next type within the group.