Guest User

doc.lisp

a guest
Dec 9th, 2017
127
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Lisp 0.39 KB | None | 0 0
  1.  
  2. ;;; read documentation
  3.  
  4. (defun doc(huh)
  5.  
  6.     ; omit 'method-combination it keeps setting off clisp debugger
  7.  
  8.     (dolist (x '(compiler-macro function setf structure t type variable))
  9.         (let ((y (documentation huh x)))
  10.             (if y (print y)))))
  11.  
  12. ;;; examples
  13.  
  14. (defun hi() "test function" "Hello, World!")
  15. (defvar xyz "test variable" 123)
  16.  
  17. ;;; test
  18.  
  19. (doc 'hi)
  20. (doc 'xyz)
Add Comment
Please, Sign In to add comment