Commit graph

23 commits

Author SHA1 Message Date
c097273aec
Implement "spit" function to write strings to a file 2024-09-29 21:43:23 +01:00
fb2cc0b1f0
Implement "slurp" function to read files into a string 2024-09-29 20:55:45 +01:00
69e2403c93
Allow to create tasks with symbol name in addition to numeric ID 2024-09-28 20:09:22 +01:00
52eae6b3e3
Port print and println to use tasks/continuations 2024-09-28 19:43:17 +01:00
cf9aa08aea
Implement the first IO function "print" to work via continuations 2024-09-28 04:24:37 +01:00
d496a95b51
Implement "task" and "task-result" objects for stdlib IO 2024-09-27 02:33:41 +01:00
efef0c57ae
Implement "raise" function 2024-09-24 20:53:26 +01:00
9298e5a65b
Add a function for raising errors (first attempt) 2024-09-24 18:47:11 +01:00
b967aa6768
Implement "set" function in the stdlib 2024-09-18 19:53:12 +01:00
6ff2084d09
Increment pc register before doing function call, not after return 2024-09-16 22:27:24 +01:00
1733b0e433
Fix stdlib value returns 2024-09-15 20:09:11 +01:00
049aeef62f
Implement a map function that works on lists 2024-09-15 16:21:58 +01:00
06149c3d61
Make stdlib functions use normal VM stack for parameter passing 2024-09-15 15:39:12 +01:00
d280c34e66
Make errors in REPL more human-readable 2024-09-11 01:35:38 +01:00
2bad87d0b0
Implement "size" function in stdlib 2024-09-10 03:18:00 +01:00
021f645fbf
Extract a common interface for Value::size() to get object sizes 2024-09-10 02:12:49 +01:00
aa1d8d7fa9
Expose the source location class to the compiler/vm 2024-09-05 23:22:45 +01:00
09693768f8
Implement input of dicts and arrays in REPL 2024-09-01 23:02:21 +01:00
8816c62a9e
Allow creating arrays from code 2024-09-01 16:13:28 +01:00
2e62a67490
Implement "let" construct in the compiler 2024-08-28 23:57:01 +01:00
f78b6e67cd
Allow creating dicts with "dict" function 2024-08-28 21:51:25 +01:00
781b3865c0
Add assert function to stdlib. Useful for tests 2024-08-27 20:19:47 +01:00
c7a3e820e0
Implement basic stdlib and a simple "println" function callable from lisp 2024-08-25 00:55:11 +01:00