docs-lib.ss

The library docs-lib.ss provides three operations:
  • annotation? : SchemeValue -> bool
    which determines whether or not a Scheme symbol is a document annotation;
  • end-annotation : annotation -> annotation
    which consumes an annotation and produces a matching ending; and
  • write-file : (list-of symbol) -> void
    which consumes a list of annotated symbols and prints them out as a "file"; it returns nothing.
  • Sample session: set library to docs-lib.ss and execute:

    > (annotation? 0)
    #f
    > (annotation? ')
    #t
    > (end-annotation 0)
    end-annotation: not an annotation: 0
    > (write-file (list 'a 'b))
    a b