Discussion of Common Lisp
4 posts • Page 1 of 1
You mean you want to read a line of input from console like this?
There is more than one way to skin a cat. You may want to look at CL cookbook => Files
Code: Select all
(if (string= (string-upcase (read-line *standard-input* NIL "")) "YES") (do-yes-stuff) (do-other-stuff))
OMG I would never guessed that was within the standard librarygugamilare wrote:There are two function which can help you:
http://www.lispworks.com/documentation/ ... y_or_n.htm
Wonder how diverse it has been implemented since it's parsing is in "implementation dependent manner"