Justin Ethier
8d72cfaff1
Added more I/O functions
2015-06-22 22:40:49 -04:00
Justin Ethier
8fa6ecf7bf
Added close-port and close-output-port
2015-06-22 22:02:45 -04:00
Justin Ethier
bebacfb985
Added current-input-port and current-error-port
2015-06-22 21:08:20 -04:00
Justin Ethier
25f02522d5
Added (port?)
2015-06-11 22:57:00 -04:00
Justin Ethier
a704d72f1b
Removing cruft
2015-06-11 22:30:10 -04:00
Justin Ethier
741835bc49
Return the "void" object from I/O functions
...
Primarily need this to prevent duplicate output in the REPL when calling functions such as (write).
2015-06-11 22:13:46 -04:00
Justin Ethier
9b6596e146
(write-char)
2015-06-12 01:43:09 -04:00
Justin Ethier
a77c6562d8
WIP - optional argument for (display)
2015-06-12 01:27:51 -04:00
Justin Ethier
335f3e86d5
Use a scheme version of (write)
2015-06-11 21:43:55 -04:00
Justin Ethier
e8ff0509ea
Added Cyc-stdout
2015-06-10 23:02:39 -04:00
Justin Ethier
94993ef05b
Fixed function definitions
2015-06-09 17:35:05 -04:00
Justin Ethier
111cf6f3a6
WIP
2015-06-08 23:01:16 -04:00
Justin Ethier
433832b5c8
Added Cyc_rt_raise2()
2015-06-03 22:06:31 -04:00
Justin Ethier
2b46282f2d
Added header def for (vector-set!)
2015-06-03 17:51:40 -04:00
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
fc2c84e731
Fixes for make-vector
2015-06-01 20:27:30 -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
b3f57d7157
Added (system)
2015-05-26 20:46:41 -04:00
Justin Ethier
7537d41e26
WIP - (system)
2015-05-25 22:59:38 -04:00
Justin Ethier
bfb5d92e6a
Fix compile warning
2015-05-07 21:26:59 -04:00
Justin Ethier
2c6ac71fb8
Alias call/cc and eval globals
2015-05-07 21:19:29 -04:00
Justin Ethier
92e25a8640
Fixes to get new runtime to build
2015-05-06 22:49:41 -04:00
Justin Ethier
2e4d3eb145
Mark TODO sections, need to figure these out
2015-05-06 18:21:12 -04:00
Justin Ethier
1ddadac287
Refactored globals
2015-05-06 18:20:24 -04:00
Justin Ethier
cf9fe25476
WIP
2015-05-06 18:15:16 -04:00
Justin Ethier
718fe12a2b
WIP
2015-05-06 17:55:11 -04:00
Justin Ethier
106b0a9348
Refactoring WIP
2015-05-06 14:21:19 -04:00
Justin Ethier
4d04f1ddb4
Refactoring runtime to support libs
2015-05-06 13:38:59 -04:00
Justin Ethier
4230295683
Fix load_varargs to prevent local var corruption
...
Assigning to a varargs variable that is not passed by the C caller can result in corruption of another parameter. EG: the var contains data for another parameter, which is then changed unexpectedly. The code was rewritten to assign to a new variable, to prevent this from happening.
2015-04-23 15:06:49 -04:00
Justin Ethier
8fe0876265
halt primitive is implemented, no need for printf
2015-04-22 18:13:45 -04:00
Justin Ethier
abc37155a9
Pass actual arg to numerical op raise()
2015-04-22 13:13:33 -04:00
Justin Ethier
cfdac7963d
Cleanup of runtime library
2015-04-21 17:16:29 -04:00
Justin Ethier
5118a4e456
Added prototypes for Cyc_sub, etc
2015-04-20 13:57:23 -04:00
Justin Ethier
538a010893
Allow varargs for - * / as well as +
2015-04-20 13:55:26 -04:00
Justin Ethier
178c5f622f
Removed debug lines
2015-04-17 22:20:09 -04:00
Justin Ethier
897e310d44
Cleanup
2015-04-17 22:17:48 -04:00
Justin Ethier
e44ece1986
Handle receiving a primitive as the next function after GC
2015-04-17 21:54:06 -04:00
Justin Ethier
36bf695eb1
Added possible solution
2015-04-17 15:15:33 -04:00
Justin Ethier
6f4581543d
Debugging icyc crash
2015-04-17 14:18:46 -04:00
Justin Ethier
060d256f4a
Properly handle rt errors
2015-04-16 22:39:04 -04:00
Justin Ethier
13c9d44500
Cleanup
2015-04-16 18:10:11 -04:00
Justin Ethier
2e9562565f
WIP
2015-04-16 17:24:04 -04:00
Justin Ethier
ef8b97e1b6
Added clarifying comments
2015-04-16 14:03:55 -04:00
Justin Ethier
ad14045446
Fix compilation errors
2015-04-16 13:59:37 -04:00
Justin Ethier
388d0c3017
WIP - move Cyc-current-exception-handler to runtime
2015-04-15 22:58:39 -04:00