Commit graph

123 commits

Author SHA1 Message Date
Justin Ethier
cbcde1e0b1 Allow (string->number) to parse floats and ints 2015-04-09 14:13:15 -04:00
Justin Ethier
ea8f56a4ee Allow (string->number) to return common type (int and double) 2015-04-08 22:59:22 -04:00
Justin Ethier
c62e035153 Building-out double type 2015-04-08 22:30:05 -04:00
Justin Ethier
b946e75a02 Fixed compiler warning 2015-03-31 22:59:14 -04:00
Justin Ethier
78fe64cb56 Replaced AFTER_LONGJMP, and misc fixes 2015-03-31 21:45:10 -04:00
Justin Ethier
456af5b6d0 Removed unnecessary code 2015-03-31 13:59:21 -04:00
Justin Ethier
dd8b1852f7 WIP - separating runtime code 2015-03-30 13:40:41 -04:00
Justin Ethier
926d7b7881 First steps toward precompiling part of the runtime 2015-03-27 17:15:03 -04:00
Justin Ethier
e8d3424125 Experimenting with an alternative approach for apply 2015-03-27 15:54:48 -04:00
Justin Ethier
e0025483a0 Tweak has-cycle to check symbols again. flip-flopping on this 2015-03-25 22:24:57 -04:00
Justin Ethier
f23b89a05f Two fixes:
- Renamed 'Cyc-has-cycle?'
- Fixed Cyc_has_cycle to prevent an infinite loop
2015-03-25 21:58:02 -04:00
Justin Ethier
19ccf7cda3 Added remaining list/pair functions 2015-03-25 14:09:49 -04:00
Justin Ethier
c6e44a6156 Only define global if CYC_EVAL 2015-03-24 21:57:06 -04:00
Justin Ethier
aa1564eda8 Added (call/cc) to interpreter 2015-03-24 17:20:21 -04:00
Justin Ethier
d418ce265f has_cycle - remove comparisons for known dupe objs
Trying leaving out comparisons of objects that are expected to be equal such as value types, booleans, and symbols.
2015-03-24 15:53:54 -04:00
Justin Ethier
9ea8d0c778 Removed extraneous newlines 2015-03-24 15:43:21 -04:00
Justin Ethier
e73155586f Removed dead code 2015-03-23 22:22:39 -04:00
Justin Ethier
fd9b66f071 Proper formatting of (write) output 2015-03-23 21:58:30 -04:00
Justin Ethier
582524af81 Moving core exception handler code from C to Scheme 2015-03-21 22:01:14 -04:00
Justin Ethier
a46b5f18f8 Debugging ex handler integration with icyc 2015-03-20 23:25:50 -04:00
Justin Ethier
41c458c23f Allow (exit) to take no args 2015-03-20 11:14:26 -04:00
Justin Ethier
1d5409b4ae Initial version of (raise-continuable) 2015-03-19 22:20:12 -04:00
Justin Ethier
f819b9e055 WIP 2015-03-18 15:12:50 -04:00
Justin Ethier
35dd277080 WIP 2015-03-17 22:52:15 -04:00
Justin Ethier
6a27bd44ad WIP - raise 2015-03-17 22:32:52 -04:00
Justin Ethier
deff3e910d Experimenting with exception handler 2015-03-16 22:47:20 -04:00
Justin Ethier
dd7a8c1846 Stubbing out exception handling 2015-03-15 22:38:24 -04:00
Justin Ethier
f307504744 Tweaks to __halt 2015-03-13 23:46:38 -04:00
Justin Ethier
5bd3deefa1 Added (exit) 2015-03-13 23:42:41 -04:00
Justin Ethier
583b9297de Renamed write barrier to mutation table
This naming convention is more appropriate, and matches the scheme standards.
2015-03-13 16:51:31 -04:00
Justin Ethier
eb3dbfbfec Removed debug printf 2015-03-13 16:41:05 -04:00
Justin Ethier
a8bf11bf79 Extend GC to support mutations 2015-03-13 16:40:08 -04:00
Justin Ethier
30cf7b58a4 Disabling write barrier, not needed for pairs 2015-03-09 22:01:46 -04:00
Justin Ethier
d73f20ea4c Removed test code 2015-03-09 18:05:57 -04:00
Justin Ethier
8063fc61c0 WIP 2015-03-08 16:51:53 -04:00
Justin Ethier
abb56c5795 Experimenting with a write barrier 2015-03-08 16:15:51 -04:00
Justin Ethier
b886fd8871 Store printable name of primitives to improve display 2015-03-03 22:39:12 -05:00
Justin Ethier
1968983fe0 Improve printing of function types 2015-03-03 22:12:43 -05:00
Justin Ethier
4dff6070ce Use CYC_EVAL to selectively include eval code 2015-03-03 21:07:20 -05:00
Justin Ethier
e6aea0c388 Refactoring 2015-03-03 20:41:37 -05:00
Justin Ethier
917c6c00b3 Fix to cyc_display
Print ellipsis with a lambda received from interpreter, as an inidication there is more that is not being displayed
2015-03-03 13:33:39 -05:00
Justin Ethier
c2dfdf39d5 WIP - exec lambdas from interpreter 2015-03-02 22:51:18 -05:00
Justin Ethier
651f6b0c7a WIP 2015-03-02 15:20:38 -05:00
Justin Ethier
dd976cbb76 WIP - experimental eval 2015-03-02 13:58:05 -05:00
Justin Ethier
2109ea1483 Setting stage for eval interpreted func from compiled code 2015-03-01 23:03:50 -05:00
Justin Ethier
7c647e0eb1 Relocated primitive defs to avoid compilation err 2015-02-27 17:31:39 -05:00
Justin Ethier
06cc7643f0 Dispatch more args 2015-02-27 17:13:37 -05:00
Justin Ethier
8c64f6ae0b Added autogenerated defprims 2015-02-27 13:30:29 -05:00
Justin Ethier
531fcca9b0 Added (error) to interpreter 2015-02-26 22:41:42 -05:00
Justin Ethier
8e059f2315 Unify dispatch of closures/varargs 2015-02-26 22:10:20 -05:00