xtmdoc-builtin-handler   scheme


Defined in:  https://github.com/digego/extempore/tree/v0.8.9/runtime/llvmti.xtm

Implementation

(define xtmdoc-builtin-handler
  (lambda (name-sym)
    (list
     '(category . "builtin")
     (cons 'name (symbol->string name-sym))
     (cons 'args (impc:ti:get-builtin-args (symbol->string name-sym)))
     (cons 'type
           (let ((type (impc:ti:get-builtin-type-str (symbol->string name-sym))))
             (if (string=? type "") '() type)))
     (cons 'docstring
           (let ((docstring (impc:ti:get-builtin-docstring (symbol->string name-sym))))
             (if (string=? docstring "") '() docstring))))))


Back to Index