Added lisp along with some study work

This commit is contained in:
2017-06-23 02:16:42 -07:00
parent 0523d93916
commit 0d49347cb7
10 changed files with 496 additions and 0 deletions

39
lisp/fuckery/what.lisp Normal file
View File

@ -0,0 +1,39 @@
(defun menu ()
(format t "Press \"1\" to print \"hi\" ~%")
(format t "Press \"2\" to print \"suck\" ~%")
(format t "Press \"3\" to print \"bitch\" ~%")
(format t "Press \"4\" to print \"ass\" ~%")
(format t "Press \"5\" to print \"dog\" ~%")
(format t "Press \"6\" to open htop ~%")
(format t "Press \"q\" to quit \"dog\" ~%"))
(defun choices ()
(format t "~%Please enter a number: ")
(let ((input (read-line)))
(cond
((string= "1" input)
(format t "Hi! ~%"))
((string= "2" input)
(format t "You Suck!~%"))
((string= "3" input)
(format t "use a bish~%"))
((string= "4" input)
(format t "Ass!~%"))
((string= "5" input)
(format t "Hey there dog~%" ))
((string= "6" input)
(shell "htop"))
((string= "q" input)
(format t "Bye!~%"))
((string= "menu" input)
(format t "~%")
(menu))
(t
(format t "You failed! " )))
(unless (string= "q" input)
(choices))))
(defun main ()
(menu)
(choices))
(main)