auto doc generation

This commit is contained in:
Felix Brendel
2019-06-11 01:17:36 +02:00
parent d01269aa13
commit 6f5ecc87b0
22 changed files with 2375 additions and 229 deletions
+7 -52
View File
@@ -410,6 +410,11 @@ other argument types, regular arguments and keyword arguments.
* Environments
* Macros
* Built-in functions
:PROPERTIES:
:UNNUMBERED: t
:END:
#+include: "./built-in-docs.org"
* COMMENT Built-in functions
This section provides a comprehensive list of the built in functions for Slime. Some of them are
defined in =C++= source code, some are themselves written in Slime. The cool thing about Slime is
that it is really easy to extend and adapt it for many purposes by writing new functions in =C++=
@@ -873,7 +878,7 @@ embedded scripting language.
: 3
: (+ 2 3)
- =extend= :: (=regular function [Slime]=) Takes a list and any
- =extend= :: (=regular function [Slime]=) Takes a list and any
- =append= :: (=regular function [Slime]=)
@@ -930,57 +935,7 @@ embedded scripting language.
- =mutate= :: (=regular function [C++]=)
- =define= :: (=special form [C++]=) See the section about =define= in [[Define]].
- =assert= :: (=regular function [C++]=)
* testbox :noexport:
#+BEGIN_SRC ditaa :file diagrams/test.eps :cmdline --no-separation --no-shadows
+-----+-----+ +-----+-----+ +-----+-----+ +-----+-----+
| | | | | | | | | | | |
| | |--->| | |--->| | |--->| | / |
| | | | | | | | | | | |
+-----+-----+ +-----+-----+ +-----+-----+ +-----+-----+
|
|
V
+-----+-----+
| | |
| | / |
| | |
+-----+-----+
#+END_SRC
#+RESULTS:
[[file:diagrams/test.eps]]
{{{slime_header}}}
#+caption: Some text to illustrate
#+begin_src slime
(define (fib x)
(cond ((< x 1) 0)
((= x 1) 1)
(else (+ (fib (- x 1))
(fib (- x 2))))))
(print (if (> (fib 3) 1)
"Hello World\n"
"Goodbye World\n"))
(fib 12)
#+end_src
#+RESULTS:
: => Hello Felixses
: 144.000000
{{{slime_header}}}
#+caption: Some text to illustrate
#+begin_src slime
;; Comment here
(print "String here")
(+ 1 2 3)
#+end_src
#+RESULTS:
: => String here6.000000
* COMMENT testbox
* meta :noexport:
# local variables:
# org-confirm-babel-evaluate: nil