Created
December 20, 2015 15:08
-
-
Save goyusia/9a40a57081a145b035ee to your computer and use it in GitHub Desktop.
Implementation 왈도체 (emacs lisp version)
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| ;; 왈도체 구현체 | |
| ;; 안녕하신가! 힘세고 강한 아침, 만일 내게 물어보면 나는 왈도. | |
| ;; execute & output | |
| ;; $ emacs --batch --script waldo.el | |
| ;; 안녕하신가! | |
| ;; 힘세고 강한 아침 | |
| ;; | |
| ;; (나는 왈도) | |
| (defun 안녕하신가! () | |
| (message "안녕하신가!")) | |
| (defun 힘세고 (a b) | |
| (let ((str-a (symbol-name a)) | |
| (str-b (symbol-name b))) | |
| (message (concat "힘세고 " str-a " " str-b)))) | |
| (defun 물어보면 (x) | |
| (print x)) | |
| (defun 내게 (fn params) | |
| (funcall fn params)) | |
| (defun 만일 (x) | |
| (if t x)) | |
| (안녕하신가!) | |
| (힘세고 '강한 '아침) | |
| (만일 (내게 '물어보면 '(나는 왈도))) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment