From 288727f09a1b3458c268497d111349e608c3f9fa Mon Sep 17 00:00:00 2001 From: "bozo.kopic" Date: Tue, 2 Aug 2022 01:20:12 +0200 Subject: init --- docs/function.rst | 83 +++++++++++++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 83 insertions(+) create mode 100644 docs/function.rst (limited to 'docs/function.rst') diff --git a/docs/function.rst b/docs/function.rst new file mode 100644 index 0000000..4f895a5 --- /dev/null +++ b/docs/function.rst @@ -0,0 +1,83 @@ +Builtin functions +================= + +In following examples, lines starting with ``>`` represent characters +provided to input stream. Lines without starting ``>`` character represent +evaluation results written to output stream. + +Available builtin functions: + + * `eval` + + * `apply` + + * `error` + + * `cons` + + * `set-car!` + + * `set-cdr!` + + * `number?` + + * `pair?` + + * `string?` + + * `symbol?` + + * `function?` + + * `syntax?` + + * `eq?` + + * `equal?` + + * `>` + + * `<` + + * `+` + + * `-` + + * `*` + + * `/` + + * `read` + + * `read-u8` + + * `peek-u8` + + * `write` + + * `write-u8` + + * `make-string` + + * `string-length` + + * `string-ref` + + * `string-set!` + + +Source code +----------- + +function.h +'''''''''' + +.. literalinclude:: ../src_c/function.h + :language: c + + +function.c +'''''''''' + +.. literalinclude:: ../src_c/function.c + :language: c -- cgit v1.2.3-70-g09d2