summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorKjetil Orbekk <kj@orbekk.com>2024-02-28 08:21:21 -0500
committerKjetil Orbekk <kj@orbekk.com>2024-02-28 08:21:21 -0500
commit427b7ab5a06213fe2edf3842e970b7ecc7be3781 (patch)
tree8213c9844e6ad8d4928d6747ef46a264210a1799
parent116dc5f0b548a43390ee13636b2d372c07af3702 (diff)
update
-rw-r--r--happy-birthday.el23
1 files changed, 23 insertions, 0 deletions
diff --git a/happy-birthday.el b/happy-birthday.el
new file mode 100644
index 0000000..fb96a6c
--- /dev/null
+++ b/happy-birthday.el
@@ -0,0 +1,23 @@
+;;; happy-birthday.el -- -*- lexical-binding: t -*-
+
+(defmacro seb (&rest x)
+ (let ((r) (w))
+ (dolist (e x)
+ (cond ((eq e '!) (push ?a w))
+ ((eq e '!?)
+ (push (intern (apply 'string w)) r)
+ (setf w nil))
+ ((eq e '()) (setf (car w) (1+ (car w))))))
+ `(quote ,r)))
+(seb
+ ! () ! () () () () ! () () () () () () () () () () ()
+ () () () () () () () !? ! () () () () () () () ()
+ () () () () () () () () () () () () () () () () ! !
+ () () () ! () () () () () () () ! () () () () () ()
+ () () () () () () () () () () () () () ! () () ()
+ () () () () () () () () () () () () () () ! () ()
+ () () () () () () ! () !? ! () () () () () () () ()
+ () () () () () () () () () () () () () () () () !
+ () () () () () () () () () () () () () () () ! ()
+ () () () () () () () () () () () () () () ! ! () ()
+ () () () () () !?)