;; syntax-help ;; include this in your init.lsp for syntax commandline help on Mac OS X ;; or other UNIX operating systems. ;; example: ;; > (help starts-with) ;; syntax: (starts-with [] ) ;; syntax: (starts-with [] ) ;; ;; For Win32 change the manual path accordingly (define-macro (help) (let (func-name (name (args 0))) (dolist (item (find-all (format {(syntax: \(%s.*?)} func-name) (read-file "/usr/share/doc/newlisp/newlisp_manual.html") $1)) ; UNIX (replace "" item "<") (replace "" item ">") (println item "")))) ;; eof