Commit graph

80 commits

Author SHA1 Message Date
Justin Ethier
0e8cd6a94e Added (vector-set!) 2015-06-02 21:33:03 -04:00
Justin Ethier
c5a219ffe1 Added vector-ref 2015-06-01 22:46:26 -04:00
Justin Ethier
6c095e23aa Added vector-length 2015-06-01 22:25:16 -04:00
Justin Ethier
fec8262285 Added list->vector and vector? 2015-06-01 21:48:16 -04:00
Justin Ethier
e5e22d8277 Fixes for compiling make-vector 2015-06-01 20:54:09 -04:00
Justin Ethier
66e69f2c29 WIP - make-vector
Working on this, code does not compile yet due to issues with the C macro. There are still lower-level changes required to support vectors, though. Especially changes to the GC.
2015-05-31 22:58:05 -04:00
Justin Ethier
b2568e6e09 Added string-cmp 2015-05-26 21:25:09 -04:00
Justin Ethier
7537d41e26 WIP - (system) 2015-05-25 22:59:38 -04:00
Justin Ethier
c21ff55158 Created library module 2015-05-24 16:22:06 -04:00
Justin Ethier
ad9f8aabb8 Fixes for library dependencies 2015-05-22 21:17:09 -04:00
Justin Ethier
ab9ba2618a Fixes to get-dep-list 2015-05-22 21:08:47 -04:00
Justin Ethier
de1b3477a0 WIP, lib dep resolving does not work yet 2015-05-21 22:57:07 -04:00
Justin Ethier
a4aeaaf1d3 Added notes 2015-05-22 01:20:46 -04:00
Justin Ethier
4e4eff037e WIP - dependency chain 2015-05-22 00:50:44 -04:00
Justin Ethier
c532b8530e WIP - library dependencies 2015-05-21 21:52:14 -04:00
Justin Ethier
8c0ce30c2e Add a global's initialization to the top-level if
it is assigned to another global. EG: (define a b). If b is not initialized until the top-level, then a must be initialized there as well, otherwise it will pick up the old value of b.
2015-05-20 22:39:57 -04:00
Justin Ethier
2ce058bf12 Call into lib "top-level" for init's 2015-05-21 01:19:39 -04:00
Justin Ethier
a804e048fd Create a function for library inits
This is done at the top-level for programs, but libraries need a dedicated function for it so we can chain inits across multiple libraries on program startup.
2015-05-20 21:21:38 -04:00
Justin Ethier
a4a6e7d602 Refactoring 2015-05-18 17:35:58 -04:00
Justin Ethier
2497fa0554 WIP 2015-05-18 14:16:10 -04:00
Justin Ethier
0c983a6a08 Always create a meaningful top-level list of exprs 2015-05-15 13:03:07 -04:00
Justin Ethier
bc6d3882ce Get rid of basedir 2015-05-14 22:37:21 -04:00
Justin Ethier
ed08341f1d Support (scheme base) instead of integrated lib 2015-05-14 22:28:45 -04:00
Justin Ethier
f69f2412b5 Added (lib:import->path) 2015-05-14 17:27:06 -04:00
Justin Ethier
dd955d9b2f Added (lib:includes ast) 2015-05-14 14:25:32 -04:00
Justin Ethier
e43fc78ac5 Output full path to .o files 2015-05-13 22:54:59 -04:00
Justin Ethier
a3594999e0 Work in different env's 2015-05-13 13:50:45 -04:00
Justin Ethier
cb941d8031 Fix up lib:imports->objs and cleanup lib section 2015-05-13 13:43:21 -04:00
Justin Ethier
722b6f22ef WIP 2015-05-12 23:00:59 -04:00
Justin Ethier
d10a45e62d WIP 2015-05-12 22:12:06 -04:00
Justin Ethier
c9af448be2 More library integration 2015-05-12 18:20:48 -04:00
Justin Ethier
7b0d1a74a0 Experimenting with resolving imports on front-end 2015-05-12 14:14:35 -04:00
Justin Ethier
7173a42149 Relocated lib functions, added import helpers 2015-05-11 22:40:17 -04:00
Justin Ethier
ef4aa4360a Do not optimize-out library exports 2015-05-05 18:00:07 -04:00
Justin Ethier
f4ce142cf1 Added option for trace level, do not emit trans by default 2015-04-23 16:06:37 -04:00
Justin Ethier
388d0c3017 WIP - move Cyc-current-exception-handler to runtime 2015-04-15 22:58:39 -04:00
Justin Ethier
a5c1d01653 Precompute application of a primitive to literals
Precompute primitives when it is safe to do so
2015-04-13 13:51:21 -04:00
Justin Ethier
b2cc35e141 Added real? and integer? 2015-04-09 17:54:35 -04:00
Justin Ethier
cc15c8b5f3 Experimenting with compile-time evaluation 2015-04-08 13:59:32 -04:00
Justin Ethier
3fc60627eb Experimenting with literal evaluation at compile time 2015-04-07 22:55:14 -04:00
Justin Ethier
0b1490d102 Simplify CPS conversion of top-level code 2015-04-07 14:01:16 -04:00
Justin Ethier
621463216f Do not keep global just because it refers to itself 2015-04-03 16:54:26 -04:00
Justin Ethier
111b279b96 Added quasi-quote macro from chibi 2015-03-26 16:42:25 -04:00
Justin Ethier
b578e13509 Added (make-string) 2015-03-26 13:46:23 -04:00
Justin Ethier
f158326c9e Added boolean=? 2015-03-26 13:26:35 -04:00
Justin Ethier
bc151ed781 Added (char-downcase) 2015-03-26 13:13:32 -04:00
Justin Ethier
11d861a97c Added (char-upcase) 2015-03-25 23:02:31 -04:00
Justin Ethier
8be0c02a06 Added more char functions 2015-03-25 22:53:55 -04:00
Justin Ethier
59e895be19 Allow (list?) to work on circular lists 2015-03-25 22:24:29 -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