Commit graph

14 commits

Author SHA1 Message Date
Alex Shinn
c1d5a6f709 adding simple stack traces 2010-06-29 01:41:10 +09:00
Alex Shinn
8b6b2e5e83 compressing environment structures
pack the next cell pointer into the source loc info
of the env cell instead of requiring a "backbone" list
2010-06-22 13:50:30 +00:00
Alex Shinn
aaf3f84c22 only warning when a non-procedure is found in an operator position 2010-05-15 14:42:19 +09:00
Alex Shinn
f8a3296372 moving apply to vm.c
copying lambda param lists on creation
2010-05-15 13:05:50 +09:00
Alex Shinn
d5ddfe6a92 changing type_exception to use self and a type_id
this simplifies and reduces the number of different static strings.
specific error messages are still available with sexp_xtype_exception.
2010-04-04 10:10:17 +09:00
Alex Shinn
a89956fc16 new primitives API
Primitives now have a signature of prim(ctx, self, n, args ...)
instead of just prim(ctx, args ...).  This allows for variadic
primitives, should help clean up exception handling, and will
allow primitives generated from Scheme->C or JIT compilation.

The primitives sometimes used as utility functions from C such as
sexp_memq have been renamed with a "_op" suffix (e.g. sexp_memq_op)
and a macro sexp_memq has been provided filling in the self and n
args automatically.  The self is passed as NULL in these macros,
but will be probably replaced with a reference to the opcode later.
2010-03-24 19:58:50 +09:00
Alex Shinn
36043bb8da making sexp_make_procedure public 2010-03-24 01:27:09 +09:00
Alex Shinn
135d53a8f0 forgot to include eval.h 2010-03-23 20:53:12 +09:00
Alex Shinn
0a9085fbbd const qualifying char* inputs to various API functions 2010-03-22 15:14:30 +09:00
Alex Shinn
9897107d53 replacing SEXP_OPC_ACCESSOR with separate getter & setter opcode classes 2010-03-16 15:19:46 +09:00
Alex Shinn
325007d2b9 Removing SEXP_OP_NEGATIVE and SEXP_OP_INVERSE - these are compiled
directly by generate_opcode_app now.  Zero arity cases now supported:
(-) => 0, (/) => 1, equivalent to the zero arity + and * cases.
2010-03-01 13:15:06 +09:00
Alex Shinn
fea1b696a4 adding patches for C++ 2010-02-27 23:57:54 +09:00
Alex Shinn
c14e32a0eb exposing sexp_free_vars 2010-02-25 23:59:40 +09:00
Alex Shinn
d954819775 adding (chibi io) w/ interface to fgets, fread, fwrite, etc. 2009-12-31 00:24:19 +09:00