source: trunk/abcl/doc/manual/grovel.lisp @ 13680

Last change on this file since 13680 was 13680, checked in by Mark Evenson, 11 years ago

Introspect docstrings from live ABCL image for the manual.

Eventually, GROVEL-DOCSTRINGS-AS-TEX will produce nicely formatted and
cross-reference labeled TeX source for inclusion in "java.tex",
"extensions.tex", and "threads.tex". But today is not that day.

File size: 856 bytes
Line 
1#-abcl We're only grovelling ABCL docstrings here.
2(defun grovel-docstrings-as-tex (&optional (package (find-package :java)))
3  (with-open-file (stream "java.tex" :direction :output)
4    (loop :for symbol :being :each :external-symbol :of package 
5       :collecting (symbol-tex symbol))))
6
7(asdf:load-system 'swank) ;; XXX Does this load the SWANK-BACKEND package as well
8
9(defun symbol-as-tex (symbol)
10  "Return the TeX representation of a SYMBOL as a string."
11  (let (type documentation arglist 
12             (doc (swank-backend:describe-symbol-for-emacs symbol)))
13    (cond ((find :function doc)
14           (setf type :function
15                 documentation (second doc)))
16          ((find :variable doc)
17           (setf type :variable 
18                 documentation (second doc))))
19    (warn "Unfinished implementation.")))
20 
21         
22   
23     
Note: See TracBrowser for help on using the repository browser.