scmdoc

Automatically generate documentation from comments in R7RS Scheme code

git clone https://git.8pit.net/scmdoc.git

 1;;> This is a library which contains an unexported, but documented, identifier.
 2(define-library (scmdoc test simple)
 3  (export magic-number1 magic-number2 id foo bar)
 4
 5  (begin
 6    ;;>| Constants
 7    ;;
 8    ;;> Various useful constants.
 9
10    ;;> A magic number.
11    (define magic-number1 23)
12
13    ;;> Another magic number.
14    (define magic-number2 42)
15
16    ;;>| Some section
17    ;;>
18    ;;> Yet another section.
19
20    ;;> Foo constant.
21    (define foo 42)
22
23    ;;>| Additional section.
24    ;;> One more way to write a section comment.
25
26    ;;> Bar constant.
27    (define bar 23)
28
29    ;;>| Procedures
30
31    ;;> Various useful procedures.
32
33    ;;> The identity procedure.
34
35    (define (id x) x)))