auto doc generation
This commit is contained in:
+7
-52
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user