lota things

This commit is contained in:
Felix Brendel
2019-06-27 11:11:18 +02:00
parent 6f5ecc87b0
commit efded2f9b8
13 changed files with 3211 additions and 199 deletions
+164 -121
View File
@@ -1,4 +1,4 @@
\hrule
* ===
- defined in :: =src/./built_ins.cpp:158:0=
@@ -7,7 +7,7 @@
#+BEGIN:
Takes 0 or more arguments and returns =t= if all arguments are equal and =()= otherwise.
#+END:
\hrule
* =>=
- defined in :: =src/./built_ins.cpp:175:0=
@@ -16,7 +16,7 @@ Takes 0 or more arguments and returns =t= if all arguments are equal and =()= ot
#+BEGIN:
TODO
#+END:
\hrule
* =>==
- defined in :: =src/./built_ins.cpp:193:0=
@@ -25,7 +25,7 @@ TODO
#+BEGIN:
TODO
#+END:
\hrule
* =<=
- defined in :: =src/./built_ins.cpp:211:0=
@@ -34,7 +34,7 @@ TODO
#+BEGIN:
TODO
#+END:
\hrule
* =<==
- defined in :: =src/./built_ins.cpp:231:0=
@@ -43,7 +43,7 @@ TODO
#+BEGIN:
TODO
#+END:
\hrule
* =+=
- defined in :: =src/./built_ins.cpp:249:0=
@@ -52,7 +52,7 @@ TODO
#+BEGIN:
TODO
#+END:
\hrule
* =-=
- defined in :: =src/./built_ins.cpp:262:0=
@@ -61,7 +61,7 @@ TODO
#+BEGIN:
TODO
#+END:
\hrule
* =*=
- defined in :: =src/./built_ins.cpp:285:0=
@@ -70,7 +70,7 @@ TODO
#+BEGIN:
TODO
#+END:
\hrule
* =/=
- defined in :: =src/./built_ins.cpp:306:0=
@@ -79,7 +79,7 @@ TODO
#+BEGIN:
TODO
#+END:
\hrule
* =**=
- defined in :: =src/./built_ins.cpp:327:0=
@@ -88,7 +88,7 @@ TODO
#+BEGIN:
TODO
#+END:
\hrule
* =%=
- defined in :: =src/./built_ins.cpp:343:0=
@@ -97,7 +97,7 @@ TODO
#+BEGIN:
TODO
#+END:
\hrule
* =assert=
- defined in :: =src/./built_ins.cpp:359:0=
@@ -106,7 +106,7 @@ TODO
#+BEGIN:
TODO
#+END:
\hrule
* =define=
- defined in :: =src/./built_ins.cpp:371:0=
@@ -115,7 +115,7 @@ TODO
#+BEGIN:
TODO
#+END:
\hrule
* =mutate=
- defined in :: =src/./built_ins.cpp:433:0=
@@ -124,7 +124,7 @@ TODO
#+BEGIN:
TODO
#+END:
\hrule
* =if=
- defined in :: =src/./built_ins.cpp:458:0=
@@ -133,7 +133,7 @@ TODO
#+BEGIN:
TODO
#+END:
\hrule
* =quote=
- defined in :: =src/./built_ins.cpp:480:0=
@@ -142,7 +142,7 @@ TODO
#+BEGIN:
TODO
#+END:
\hrule
* =quasiquote=
- defined in :: =src/./built_ins.cpp:485:0=
@@ -151,7 +151,7 @@ TODO
#+BEGIN:
TODO
#+END:
\hrule
* =and=
- defined in :: =src/./built_ins.cpp:583:0=
@@ -160,7 +160,7 @@ TODO
#+BEGIN:
TODO
#+END:
\hrule
* =or=
- defined in :: =src/./built_ins.cpp:594:0=
@@ -169,7 +169,7 @@ TODO
#+BEGIN:
TODO
#+END:
\hrule
* =not=
- defined in :: =src/./built_ins.cpp:605:0=
@@ -178,7 +178,7 @@ TODO
#+BEGIN:
TODO
#+END:
\hrule
* =while=
- defined in :: =src/./built_ins.cpp:615:0=
@@ -187,7 +187,7 @@ TODO
#+BEGIN:
TODO
#+END:
\hrule
* =lambda=
- defined in :: =src/./built_ins.cpp:693:0=
@@ -196,7 +196,7 @@ TODO
#+BEGIN:
TODO
#+END:
\hrule
* =special-lambda=
- defined in :: =src/./built_ins.cpp:705:0=
@@ -205,7 +205,7 @@ TODO
#+BEGIN:
TODO
#+END:
\hrule
* =eval=
- defined in :: =src/./built_ins.cpp:713:0=
@@ -214,7 +214,7 @@ TODO
#+BEGIN:
TODO
#+END:
\hrule
* =begin=
- defined in :: =src/./built_ins.cpp:725:0=
@@ -223,7 +223,7 @@ TODO
#+BEGIN:
TODO
#+END:
\hrule
* =list=
- defined in :: =src/./built_ins.cpp:741:0=
@@ -232,7 +232,7 @@ TODO
#+BEGIN:
TODO
#+END:
\hrule
* =pair=
- defined in :: =src/./built_ins.cpp:745:0=
@@ -241,7 +241,7 @@ TODO
#+BEGIN:
TODO
#+END:
\hrule
* =first=
- defined in :: =src/./built_ins.cpp:755:0=
@@ -250,7 +250,7 @@ TODO
#+BEGIN:
TODO
#+END:
\hrule
* =rest=
- defined in :: =src/./built_ins.cpp:766:0=
@@ -259,7 +259,7 @@ TODO
#+BEGIN:
TODO
#+END:
\hrule
* =set-type=
- defined in :: =src/./built_ins.cpp:777:0=
@@ -268,7 +268,7 @@ TODO
#+BEGIN:
TODO
#+END:
\hrule
* =delete-type=
- defined in :: =src/./built_ins.cpp:789:0=
@@ -277,7 +277,7 @@ TODO
#+BEGIN:
TODO
#+END:
\hrule
* =type=
- defined in :: =src/./built_ins.cpp:796:0=
@@ -286,7 +286,7 @@ TODO
#+BEGIN:
TODO
#+END:
\hrule
* =info=
- defined in :: =src/./built_ins.cpp:828:0=
@@ -295,7 +295,7 @@ TODO
#+BEGIN:
TODO
#+END:
\hrule
* =show=
- defined in :: =src/./built_ins.cpp:910:0=
@@ -304,7 +304,7 @@ TODO
#+BEGIN:
TODO
#+END:
\hrule
* =addr-of=
- defined in :: =src/./built_ins.cpp:922:0=
@@ -313,7 +313,7 @@ TODO
#+BEGIN:
TODO
#+END:
\hrule
* =generate-docs=
- defined in :: =src/./built_ins.cpp:928:0=
@@ -322,7 +322,7 @@ TODO
#+BEGIN:
TODO
#+END:
\hrule
* =print=
- defined in :: =src/./built_ins.cpp:937:0=
@@ -331,7 +331,7 @@ TODO
#+BEGIN:
TODO
#+END:
\hrule
* =read=
- defined in :: =src/./built_ins.cpp:945:0=
@@ -340,7 +340,7 @@ TODO
#+BEGIN:
TODO
#+END:
\hrule
* =exit=
- defined in :: =src/./built_ins.cpp:962:0=
@@ -349,7 +349,7 @@ TODO
#+BEGIN:
TODO
#+END:
\hrule
* =break=
- defined in :: =src/./built_ins.cpp:973:0=
@@ -358,7 +358,7 @@ TODO
#+BEGIN:
TODO
#+END:
\hrule
* =memstat=
- defined in :: =src/./built_ins.cpp:978:0=
@@ -367,7 +367,7 @@ TODO
#+BEGIN:
TODO
#+END:
\hrule
* =try=
- defined in :: =src/./built_ins.cpp:982:0=
@@ -376,7 +376,7 @@ TODO
#+BEGIN:
TODO
#+END:
\hrule
* =load=
- defined in :: =src/./built_ins.cpp:997:0=
@@ -385,7 +385,7 @@ TODO
#+BEGIN:
TODO
#+END:
\hrule
* =import=
- defined in :: =src/./built_ins.cpp:1008:0=
@@ -394,7 +394,7 @@ TODO
#+BEGIN:
TODO
#+END:
\hrule
* =copy=
- defined in :: =src/./built_ins.cpp:1019:0=
@@ -403,7 +403,7 @@ TODO
#+BEGIN:
TODO
#+END:
\hrule
* =error=
- defined in :: =src/./built_ins.cpp:1027:0=
@@ -412,7 +412,7 @@ TODO
#+BEGIN:
TODO
#+END:
\hrule
* =symbol->keyword=
- defined in :: =src/./built_ins.cpp:1034:0=
@@ -421,7 +421,7 @@ TODO
#+BEGIN:
TODO
#+END:
\hrule
* =string->symbol=
- defined in :: =src/./built_ins.cpp:1043:0=
@@ -430,7 +430,7 @@ TODO
#+BEGIN:
TODO
#+END:
\hrule
* =symbol->string=
- defined in :: =src/./built_ins.cpp:1055:0=
@@ -439,7 +439,7 @@ TODO
#+BEGIN:
TODO
#+END:
\hrule
* =concat-strings=
- defined in :: =src/./built_ins.cpp:1064:0=
@@ -448,7 +448,7 @@ TODO
#+BEGIN:
TODO
#+END:
\hrule
* =pe=
- defined in :: =pre.slime:2:40=
@@ -456,31 +456,48 @@ TODO
- arguments :: :
- postitional :: =expr=
- docu :: none
\hrule
* =when=
- defined in :: =pre.slime:8:37=
- defined in :: =pre.slime:21:37=
- type :: =:macro=
- arguments :: :
- postitional :: =condition=:
- rest :: =body=
- docu ::
#+BEGIN:
Doc String for `when'
#+END:
Special form for when multiple actions should be done if a
condition is true.
{{{example_start}}}
(when (not ())
(print "Hello ")
(print "from ")
(print "when!"))
(when ()
(print "Goodbye ")
(print "World!"))
{{{example_end}}}
#+END:
\hrule
* =unless=
- defined in :: =pre.slime:13:41=
- defined in :: =pre.slime:28:41=
- type :: =:macro=
- arguments :: :
- postitional :: =condition=:
- rest :: =body=
- docu :: none
- docu ::
#+BEGIN:
Special form for when multiple actions should be done if a
condition is false.
#+END:
\hrule
* =n-times=
- defined in :: =pre.slime:20:35=
- defined in :: =pre.slime:35:35=
- type :: =:macro=
- arguments :: :
- postitional :: =times=, =action=
@@ -488,45 +505,47 @@ Doc String for `when'
#+BEGIN:
Executes action times times.
#+END:
\hrule
* =let=
- defined in :: =pre.slime:37:64=
- defined in :: =pre.slime:52:64=
- type :: =:macro=
- arguments :: :
- postitional :: =bindings=:
- rest :: =body=
- docu :: none
\hrule
* =cond=
- defined in :: =pre.slime:51:19=
- defined in :: =pre.slime:66:19=
- type :: =:macro=
- arguments :: :
- rest :: =clauses=
- docu :: none
\hrule
* =define-special=
- defined in :: =pre.slime:54:81=
- defined in :: =pre.slime:69:81=
- type :: =:macro=
- arguments :: :
- postitional :: =name-and-args=:
- rest :: =body=
- docu :: none
\hrule
* =construct-list=
- defined in :: =pre.slime:94:14=
- defined in :: =pre.slime:110:14=
- type :: =:macro=
- arguments :: :
- rest :: =body=
- docu ::
#+BEGIN:
{{{example_start}}}
(construct-list
i <- '(1 2 3 4 5)
yield (* i i))
{{{example_end}}}
(construct-list
i <- '(1 2 3 4)
@@ -538,12 +557,11 @@ Executes action times times.
when (evenp i)
yield i)
#+END:
\hrule
* =apply=
- defined in :: =pre.slime:99:28=
- defined in :: =pre.slime:115:28=
- type :: =:macro=
- arguments :: :
- postitional :: =fun=, =seq=
@@ -552,17 +570,17 @@ Executes action times times.
Applies the funciton to the sequence, as in calls the function with
ithe sequence as arguemens.
#+END:
\hrule
* =define-package=
- defined in :: =pre.slime:113:24=
- defined in :: =pre.slime:129:24=
- type :: =:macro=
- arguments :: :
- postitional :: =name=:
- rest :: =body=
- docu :: none
* =nil?=
\hrule
* =null?=
- type :: =:lambda=
- arguments :: :
@@ -571,7 +589,7 @@ ithe sequence as arguemens.
#+BEGIN:
Checks if the argument is =nil=.
#+END:
\hrule
* =number?=
- type :: =:lambda=
@@ -581,7 +599,7 @@ Checks if the argument is =nil=.
#+BEGIN:
Checks if the argument is a number.
#+END:
\hrule
* =symbol?=
- type :: =:lambda=
@@ -591,7 +609,7 @@ Checks if the argument is a number.
#+BEGIN:
Checks if the argument is a symbol.
#+END:
\hrule
* =keyword?=
- type :: =:lambda=
@@ -601,7 +619,7 @@ Checks if the argument is a symbol.
#+BEGIN:
Checks if the argument is a keyword.
#+END:
\hrule
* =pair?=
- type :: =:lambda=
@@ -611,7 +629,7 @@ Checks if the argument is a keyword.
#+BEGIN:
Checks if the argument is a pair.
#+END:
\hrule
* =string?=
- type :: =:lambda=
@@ -621,7 +639,7 @@ Checks if the argument is a pair.
#+BEGIN:
Checks if the argument is a string.
#+END:
\hrule
* =lambda?=
- type :: =:lambda=
@@ -631,7 +649,7 @@ Checks if the argument is a string.
#+BEGIN:
Checks if the argument is a function.
#+END:
\hrule
* =macro?=
- type :: =:lambda=
@@ -641,7 +659,7 @@ Checks if the argument is a function.
#+BEGIN:
Checks if the argument is a macro.
#+END:
\hrule
* =special-lambda?=
- type :: =:lambda=
@@ -651,7 +669,7 @@ Checks if the argument is a macro.
#+BEGIN:
Checks if the argument is a special-lambda.
#+END:
\hrule
* =built-in-function?=
- type :: =:lambda=
@@ -661,14 +679,14 @@ Checks if the argument is a special-lambda.
#+BEGIN:
Checks if the argument is a built-in function.
#+END:
\hrule
* =callable?=
- type :: =:lambda=
- arguments :: :
- postitional :: =x=
- docu :: none
\hrule
* =end=
- type :: =:lambda=
@@ -677,8 +695,14 @@ Checks if the argument is a built-in function.
- docu ::
#+BEGIN:
Returns the last pair in the sqeuence.
#+END:
{{{example_start}}}
(define a (list 1 2 3 4))
(printf (end a))
{{{example_end}}}
#+END:
\hrule
* =last=
- type :: =:lambda=
@@ -687,8 +711,14 @@ Returns the last pair in the sqeuence.
- docu ::
#+BEGIN:
Returns the (first) of the last (pair) of the given sequence.
#+END:
{{{example_start}}}
(define a (list 1 2 3 4))
(printf (last a))
{{{example_end}}}
#+END:
\hrule
* =extend=
- type :: =:lambda=
@@ -699,7 +729,7 @@ Returns the (first) of the last (pair) of the given sequence.
Extends a list with the given element, by putting it in
the (rest) of the last element of the sequence.
#+END:
\hrule
* =extend2=
- type :: =:lambda=
@@ -710,7 +740,7 @@ the (rest) of the last element of the sequence.
Extends a list with the given element, by putting it in
the (rest) of the last element of the sequence.
#+END:
\hrule
* =append=
- type :: =:lambda=
@@ -721,7 +751,7 @@ the (rest) of the last element of the sequence.
Appends an element to a sequence, by extendeing the list
with (pair elem nil).
#+END:
\hrule
* =length=
- type :: =:lambda=
@@ -731,7 +761,21 @@ with (pair elem nil).
#+BEGIN:
Returns the length of the given sequence.
#+END:
\hrule
* =sublist-starting-at-index=
- type :: =:lambda=
- arguments :: :
- postitional :: =seq=, =index=
- docu :: none
\hrule
* =list-without-index=
- type :: =:lambda=
- arguments :: :
- postitional :: =seq=, =index=
- docu :: none
\hrule
* =increment=
- type :: =:lambda=
@@ -741,7 +785,7 @@ Returns the length of the given sequence.
#+BEGIN:
Adds one to the argument.
#+END:
\hrule
* =decrement=
- type :: =:lambda=
@@ -751,7 +795,7 @@ Adds one to the argument.
#+BEGIN:
Subtracts one from the argument.
#+END:
\hrule
* =range=
- type :: =:lambda=
@@ -762,7 +806,7 @@ Subtracts one from the argument.
Returns a sequence of numbers starting with the number defined by the
key =from= and ends with the number defined in =to=.
#+END:
\hrule
* =range-while=
- type :: =:lambda=
@@ -773,7 +817,7 @@ key =from= and ends with the number defined in =to=.
Returns a sequence of numbers starting with the number defined
by the key 'from' and ends with the number defined in 'to'.
#+END:
\hrule
* =map=
- type :: =:lambda=
@@ -785,7 +829,7 @@ Takes a function and a sequence as arguments and returns a new
sequence which contains the results of using the first sequences
elemens as argument to that function.
#+END:
\hrule
* =reduce=
- type :: =:lambda=
@@ -799,7 +843,7 @@ given function accepts a variable amount of parameters. If your
funciton is limited to two arguments, use [[=reduce-binary=]]
instead.
#+END:
\hrule
* =reduce-binary=
- type :: =:lambda=
@@ -807,12 +851,12 @@ instead.
- postitional :: =fun=, =seq=
- docu ::
#+BEGIN:
Takes a function and a sequence as arguments and applies the
function to the argument sequence. reduce-binary applies the
arguments `pair-wise' which means it works with binary functions
as compared to `reduce'.
Takes a function and a sequence as arguments and applies the
function to the argument sequence. reduce-binary applies the arguments
*pair-wise* which means it works with binary functions as compared to
[[=reduce=]].
#+END:
\hrule
* =filter=
- type :: =:lambda=
@@ -825,43 +869,42 @@ function to every value in the sequence. If the result of that
funciton application returns a truthy value, the original value is
added to a list, which in the end is returned.
#+END:
\hrule
* =zip=
- type :: =:lambda=
- arguments :: :
- postitional :: =l1=, =l2=
- docu :: none
\hrule
* =unzip=
- type :: =:lambda=
- arguments :: :
- postitional :: =lists=
- docu :: none
\hrule
* =enumerate=
- type :: =:lambda=
- arguments :: :
- postitional :: =seq=
- docu :: none
\hrule
* =printf=
- type :: =:lambda=
- arguments :: :
- keyword :: =sep= =(" ")=, =end= =("
")=:
- keyword :: =sep= =(" ")=, =end= =("\n")=:
- rest :: =args=
- docu ::
#+BEGIN:
A wrapper for the built-in (print) that accepts a variable number
of arguments and also provides keywords for specifying the printed
separators between the arguments and what should be printed after the
las argument.
A wrapper for the built-in function [[=print=]] that accepts a
variable number of arguments and also provides keywords for specifying
the printed separators (=sep=) between the arguments and what should
be printed after the last argument (=end=).
#+END:
\hrule
* =define-class=
- defined in :: =oo.slime:22:22=
@@ -873,7 +916,7 @@ las argument.
#+BEGIN:
Macro for creating simple classes.
#+END:
\hrule
* =->=
- defined in :: =oo.slime:25:24=
@@ -882,14 +925,14 @@ Macro for creating simple classes.
- postitional :: =obj=, =meth=:
- rest :: =args=
- docu :: none
\hrule
* =math->=
- type :: =:package=
- arguments :: :
- rest :: =args=
- docu :: none
\hrule
* =math-> pi=
- defined in :: =math.slime:5:4=
@@ -899,7 +942,7 @@ Macro for creating simple classes.
#+BEGIN:
Tha famous circle constant.
#+END:
\hrule
* =math-> abs=
- defined in :: =math.slime:9:4=
@@ -910,7 +953,7 @@ Tha famous circle constant.
#+BEGIN:
Accepts one argument and returns the absoulte value of it
#+END:
\hrule
* =math-> sqrt=
- defined in :: =math.slime:13:4=
@@ -921,10 +964,10 @@ Accepts one argument and returns the absoulte value of it
#+BEGIN:
Accepts one argument and returns the square root of it
#+END:
\hrule
* =math-> make-vector3=
- defined in :: =pre.slime:37:63=
- defined in :: =pre.slime:52:63=
- type :: =:constructor=
- arguments :: :
- postitional :: =x=, =y=, =z=
@@ -932,7 +975,7 @@ Accepts one argument and returns the square root of it
#+BEGIN:
This is the handle to an object of the class vector3
#+END:
\hrule
* =math-> make-vector3 define-class=
- defined in :: =oo.slime:22:22=
@@ -944,7 +987,7 @@ This is the handle to an object of the class vector3
#+BEGIN:
Macro for creating simple classes.
#+END:
\hrule
* =math-> make-vector3 ->=
- defined in :: =oo.slime:25:24=
+2722
View File
File diff suppressed because it is too large Load Diff
+3
View File
@@ -1,5 +1,8 @@
#+title: The Slime 1.0 Manual
#+macro: example_start (eval (concat "{{{slime_header}}}" "\n" "#+begin_src slime"))
#+macro: example_end (eval (concat "#+end_src"))
#+begin_abstract
abstract
#+end_abstract