Commit Graph

113 Commits

Author SHA1 Message Date
Scott Richmond
e4d6522923 old->new prelude
Former-commit-id: d20c453180
2025-07-06 23:14:01 -04:00
Scott Richmond
bf11aa3e11 improve (but not fully fix?) reported line numbers in tracebacks
Former-commit-id: 6eb28888ca
2025-07-06 18:27:43 -04:00
Scott Richmond
d8cf28b62c fix guard clause bug in function calls
Former-commit-id: 14d07e40de
2025-07-06 17:53:10 -04:00
Scott Richmond
0e6fc8d266 get doc! to where it needs to be; make show much longer
Former-commit-id: 64a02bec08
2025-07-06 17:18:37 -04:00
Scott Richmond
51c5e7d0d2 do some things and stuff?
Former-commit-id: 1c7d5b4782
2025-07-06 16:17:21 -04:00
Scott Richmond
f5e84c01c4 use NotNan as number representation
Former-commit-id: e41d6b802b
2025-07-06 00:27:50 -04:00
Scott Richmond
9606d9485e spawn is now a special form
Former-commit-id: bbdab93cf0
2025-07-04 17:24:54 -04:00
Scott Richmond
15ed1ee718 keep working on panics: tracebacks sort of work?
Former-commit-id: 9228e060bb
2025-07-04 14:10:03 -04:00
Scott Richmond
53e295ac37 working on panics
Former-commit-id: 0d8b42662b
2025-07-04 01:23:16 -04:00
Scott Richmond
9040d53e32 string keys on dicts now fully work
Former-commit-id: 9f9f59b33b
2025-07-03 15:30:51 -04:00
Scott Richmond
1b1b04f014 method syntax sugar achieved
Former-commit-id: 0cd682de21
2025-07-02 19:29:49 -04:00
Scott Richmond
542abc6d43 actually get receive working????
Former-commit-id: f710beff46
2025-06-28 16:40:31 -04:00
Scott Richmond
2361750f31 make progress, I guess
Former-commit-id: 48342ba4ea
2025-06-27 20:41:29 -04:00
Scott Richmond
f3d8e9caf1 move Ast into its own module
Former-commit-id: a175ee7a41
2025-06-27 19:05:17 -04:00
Scott Richmond
2f1400393f so many things: DRY out VM, fix repeat tail calls, etc. 2025-06-24 15:50:02 -04:00
Scott Richmond
64c4e9cb4a update (fix?) partial function application stack discipline 2025-06-23 21:22:28 -04:00
Scott Richmond
ee80d971f5 fix upvalue resolution for forward-declared functions 2025-06-23 20:06:40 -04:00
Scott Richmond
78e5653d85 fix upvalue resolution, hopefully for real this time 2025-06-23 19:17:53 -04:00
Scott Richmond
c836278dcc moar debugging: find issues with upvalues 2025-06-23 18:59:12 -04:00
Scott Richmond
2393171317 actually fix splatted dict pattern stack discipline 2025-06-23 17:58:10 -04:00
Scott Richmond
77a25ba0f2 fix repeat stack discipline 2025-06-23 17:37:46 -04:00
Scott Richmond
8fd880f749 fix dict pattern stack discipline 2025-06-23 17:33:45 -04:00
Scott Richmond
3352b02bce wip: sorting out diect pattern stack discipline 2025-06-23 00:38:51 -04:00
Scott Richmond
2658939b0a fix tail position in collection forms 2025-06-23 00:27:50 -04:00
Scott Richmond
6b56079518 update stack discipline in dict patterns 2025-06-23 00:07:04 -04:00
Scott Richmond
cec6accce3 additional fixes in tuple and dict patterns 2025-06-22 23:58:55 -04:00
Scott Richmond
9cb36f5189 add turtle graphics, fix jump len error in tuple pattern 2025-06-22 23:57:11 -04:00
Scott Richmond
1d2ea4ae38 keep adding prelude; fix when stack discipline 2025-06-22 22:46:07 -04:00
Scott Richmond
2a31381d34 fix interpolated string stack discipline 2025-06-22 21:15:17 -04:00
Scott Richmond
d421622df2 update block stack work 2025-06-22 20:43:51 -04:00
Scott Richmond
86df1834e3 fix and & or 2025-06-22 20:26:08 -04:00
Scott Richmond
ad13f8b038 maybe actually fix the loop stuff; lots of QOL improvements 2025-06-22 19:42:25 -04:00
Scott Richmond
17ff00f570 keep grinding; quality of life improvements to aid in grinding 2025-06-22 17:03:50 -04:00
Scott Richmond
4548be12ad improve bytecode readability by reporting patterns 2025-06-22 14:38:29 -04:00
Scott Richmond
d762458bb3 keep grinding on loop/recur/jif stack mismatch; add ast->code printer 2025-06-22 14:04:43 -04:00
Scott Richmond
3ac08a1991 lots of bugs fixed--upvalues, bindings, stack manipulations, tail calls, etc. 2025-06-21 22:25:08 -04:00
Scott Richmond
16fed32000 fix one-up closure resolution 2025-06-21 18:33:14 -04:00
Scott Richmond
5a0a6453ab start work on getting prelude working; discover closure bug 2025-06-21 17:43:47 -04:00
Scott Richmond
cd79c94938 fix if alternative unconditional jump len 2025-06-20 17:09:41 -04:00
Scott Richmond
3107891b65 prelude compiles: WAT 2025-06-20 16:02:48 -04:00
Scott Richmond
ac06504979 constants need 16 bits 2025-06-20 15:56:13 -04:00
Scott Richmond
df0a8e5b91 fix function scoping bug 2025-06-20 15:35:09 -04:00
Scott Richmond
a275757eac wire up stub:w prelude from external file 2025-06-20 14:43:14 -04:00
Scott Richmond
f244b97c4a work on prelude; update tailcall to deal properly with base fns 2025-06-20 14:29:31 -04:00
Scott Richmond
fac7d71732 fix argument order in base fns 2025-06-20 12:49:31 -04:00
Scott Richmond
062e7d5126 recursion works, so does mutual recursion; function call bugfixes 2025-06-20 12:32:15 -04:00
Scott Richmond
c3199fe716 notes and todos 2025-06-20 00:56:43 -04:00
Scott Richmond
bd36e21bd8 find a bug in function bindings; TCO is maybe complete?; things are in a shambles 2025-06-19 21:47:58 -04:00
Scott Richmond
430e29a608 fix upvalue resolution, start work on TCO 2025-06-19 20:29:15 -04:00
Scott Richmond
fdb4713d98 rought draft of splatted fn args 2025-06-19 18:26:44 -04:00