about summary refs log tree commit diff
path: root/dump.fnl
diff options
context:
space:
mode:
authorequa <equaa@protonmail.com>2021-12-24 22:59:02 -0600
committerequa <equaa@protonmail.com>2021-12-24 22:59:02 -0600
commit7487469113eed2daea6c46d2dc50818f4cd62951 (patch)
tree1633d9ed6e73231788190fda740f685c11e0ecf9 /dump.fnl
init
Diffstat (limited to 'dump.fnl')
-rw-r--r--dump.fnl6
1 files changed, 6 insertions, 0 deletions
diff --git a/dump.fnl b/dump.fnl
new file mode 100644
index 0000000..4024247
--- /dev/null
+++ b/dump.fnl
@@ -0,0 +1,6 @@
+;; dumps standard input as list of codepoints
+
+(local x (io.read))
+
+(each [_ v (utf8.codes x)]
+  (print (string.format "%08x" v)))