Skip to content

Instantly share code, notes, and snippets.

@goyusia
Created December 20, 2015 15:08
Show Gist options
  • Select an option

  • Save goyusia/9a40a57081a145b035ee to your computer and use it in GitHub Desktop.

Select an option

Save goyusia/9a40a57081a145b035ee to your computer and use it in GitHub Desktop.
Implementation 왈도체 (emacs lisp version)
;; 왈도체 구현체
;; 안녕하신가! 힘세고 강한 아침, 만일 내게 물어보면 나는 왈도.
;; 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