summaryrefslogtreecommitdiff
path: root/tnslc/utils/algo.tnsl
diff options
context:
space:
mode:
authorKyle Gunger <kgunger12@gmail.com>2024-12-13 16:10:14 -0500
committerKyle Gunger <kgunger12@gmail.com>2024-12-13 16:10:14 -0500
commit61e1e5ce377719c8e9e437e5ba79ba06fc1de4ba (patch)
tree10ad1cbb37ab6fc2cbfc6971f9d00c8610b77f70 /tnslc/utils/algo.tnsl
parent8bcb71c01fffa6cb576ad77f90ff3efe5c4c8fca (diff)
Type generation for compile modulesorigin
Diffstat (limited to 'tnslc/utils/algo.tnsl')
-rw-r--r--tnslc/utils/algo.tnsl7
1 files changed, 7 insertions, 0 deletions
diff --git a/tnslc/utils/algo.tnsl b/tnslc/utils/algo.tnsl
index 73cfb7f..35ac35c 100644
--- a/tnslc/utils/algo.tnsl
+++ b/tnslc/utils/algo.tnsl
@@ -200,6 +200,13 @@
return out.as_cstr()
;/
+/; stradd(~uint8 a, ~uint8 b) [~uint8]
+ Vector out
+ out.from_cstr(a)
+ out.push_cstr(b)
+ return out.as_cstr()
+;/
+
/; unquote_cha(~uint8 cha) [uint8]
/; if (cha` !== '\\')
return cha`