diff options
author | Kjetil Orbekk <kj@orbekk.com> | 2024-02-28 08:21:21 -0500 |
---|---|---|
committer | Kjetil Orbekk <kj@orbekk.com> | 2024-02-28 08:21:21 -0500 |
commit | 427b7ab5a06213fe2edf3842e970b7ecc7be3781 (patch) | |
tree | 8213c9844e6ad8d4928d6747ef46a264210a1799 | |
parent | 116dc5f0b548a43390ee13636b2d372c07af3702 (diff) |
update
-rw-r--r-- | happy-birthday.el | 23 |
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 + ! () ! () () () () ! () () () () () () () () () () () + () () () () () () () !? ! () () () () () () () () + () () () () () () () () () () () () () () () () ! ! + () () () ! () () () () () () () ! () () () () () () + () () () () () () () () () () () () () ! () () () + () () () () () () () () () () () () () () ! () () + () () () () () () ! () !? ! () () () () () () () () + () () () () () () () () () () () () () () () () ! + () () () () () () () () () () () () () () () ! () + () () () () () () () () () () () () () () ! ! () () + () () () () () !?) |