mirror of
https://github.com/ashinn/chibi-scheme.git
synced 2025-07-08 13:37:35 +02:00
Adding note about C API philosophy.
This commit is contained in:
parent
781c7b45b0
commit
c3b214a7ab
1 changed files with 13 additions and 0 deletions
|
@ -622,6 +622,19 @@ Decrement the absolute reference count for \var{obj}.
|
||||||
|
|
||||||
\subsection{API Index}
|
\subsection{API Index}
|
||||||
|
|
||||||
|
The above sections describe most everything you need for embedding in
|
||||||
|
a typical application, notably creating environments and evaluating
|
||||||
|
code from sexps, strings or files. The following sections expand on
|
||||||
|
additional macros and utilities for inspecting, accessing and creating
|
||||||
|
different Scheme types, and for performing port and string I/O.
|
||||||
|
|
||||||
|
Being able to convert from C string to sexp, evaluate it, and convert
|
||||||
|
the result back to a C string forms the basis of the C API. Because
|
||||||
|
Chibi is aimed primarily at minimal size, there are relatively few
|
||||||
|
other utilities or helpers. It is expected most high-level code will
|
||||||
|
be written in Scheme, and most low-level code will be written in pure,
|
||||||
|
Scheme-agnostic C and wrapped via the FFI.
|
||||||
|
|
||||||
\subsubsection{Type Predicates}
|
\subsubsection{Type Predicates}
|
||||||
|
|
||||||
The sexp represents different Scheme types with the use of tag bits for
|
The sexp represents different Scheme types with the use of tag bits for
|
||||||
|
|
Loading…
Add table
Reference in a new issue