fink/gtp.lisp

13 lines
323 B
Common Lisp
Raw Normal View History

2008-04-28 09:18:59 +02:00
(in-package :gtp-handler)
(defun gtp-client ()
(do ((quit? nil))
(= quit? nil)
(dispatch-gtp-command (read-line t))))
(defun dispatch-gtp-command (command-string)
(let* ((commands (split-string (string-downcase command-string) " "))
(command (intern (first commands))))
(case (command)
2008-04-28 09:23:01 +02:00
(thing
2008-04-28 09:18:59 +02:00