summaryrefslogtreecommitdiff
path: root/vere/pkg/noun/jets/e/scot.c
diff options
context:
space:
mode:
authorpolwex <polwex@sortug.com>2025-10-05 21:56:51 +0700
committerpolwex <polwex@sortug.com>2025-10-05 21:56:51 +0700
commitfcedfddf00b3f994e4f4e40332ac7fc192c63244 (patch)
tree51d38e62c7bdfcc5f9a5e9435fe820c93cfc9a3d /vere/pkg/noun/jets/e/scot.c
claude is gud
Diffstat (limited to 'vere/pkg/noun/jets/e/scot.c')
-rw-r--r--vere/pkg/noun/jets/e/scot.c30
1 files changed, 30 insertions, 0 deletions
diff --git a/vere/pkg/noun/jets/e/scot.c b/vere/pkg/noun/jets/e/scot.c
new file mode 100644
index 0000000..f39c46b
--- /dev/null
+++ b/vere/pkg/noun/jets/e/scot.c
@@ -0,0 +1,30 @@
+/// @file
+
+#include "jets/k.h"
+#include "jets/q.h"
+#include "jets/w.h"
+
+#include "noun.h"
+
+#include <ctype.h>
+
+u3_atom
+u3qe_scot(u3_atom a, u3_atom b)
+{
+ switch (a) {
+ case c3__tas: return u3k(b);
+ case c3__ud: return u3s_etch_ud(b);
+ case c3__ux: return u3s_etch_ux(b);
+ case c3__uv: return u3s_etch_uv(b);
+ case c3__uw: return u3s_etch_uw(b);
+ default: return u3_none;
+ }
+}
+
+u3_noun
+u3we_scot(u3_noun cor)
+{
+ u3_atom a, b;
+ u3x_mean(cor, u3x_sam_2, &a, u3x_sam_3, &b, 0);
+ return u3qe_scot(u3x_atom(a), u3x_atom(b));
+}