Commit graph

3217 commits

Author SHA1 Message Date
Folkert
35e1e94a94 implement Set.walk 2021-02-15 01:49:25 +01:00
Folkert
57e8d5b4c3 implement Set inclusion functions 2021-02-14 23:57:35 +01:00
Folkert
1256327caa dict walk 2021-02-14 21:16:42 +01:00
Folkert
39c4353554 add difference 2021-02-14 20:01:24 +01:00
Folkert
02db8f1a05 union and intersection 2021-02-14 19:55:01 +01:00
Folkert
88d5b84cc7 add unit value dict tests 2021-02-14 18:44:30 +01:00
Folkert
87ce5d9dd8 remove dict test 2021-02-14 16:24:26 +01:00
Folkert
3f28a40f57 use RocStr From instance 2021-02-14 16:20:53 +01:00
Folkert
b114ca80b4 fix test 2021-02-14 16:19:04 +01:00
Folkert
c4e606bcc6 fix formatting issue 2021-02-14 16:09:59 +01:00
Folkert
02e161f839 add dict tests with string keys/values 2021-02-14 15:49:40 +01:00
Folkert
7f8ca150f5 always inline RocDict functions 2021-02-14 15:11:47 +01:00
Folkert
89821a83af use nicer casting method 2021-02-14 15:05:58 +01:00
Folkert
62d0bc62ce deallocate dict when it becomes empty 2021-02-14 14:49:01 +01:00
Folkert
cceb2a353d Merge remote-tracking branch 'origin/trunk' into dict-insert 2021-02-14 13:42:07 +01:00
Brendan Hansknecht
6293fbfade Merge remote-tracking branch 'origin' into gen_dev/switch 2021-02-13 21:37:24 -08:00
Richard Feldman
0db8e2dbf2
Merge branch 'trunk' into gen_dev/funcs 2021-02-13 23:38:33 -05:00
Folkert
821df8bff8 Merge remote-tracking branch 'origin/trunk' into gen-equality 2021-02-14 03:44:31 +01:00
Folkert
67aaaf4623 remove some dead code 2021-02-14 03:44:00 +01:00
Folkert
b7ae151d6e clippy 2021-02-14 03:18:27 +01:00
Folkert
210bd18fe3 implement decref, fuse RC operations 2021-02-14 03:16:11 +01:00
Folkert
c9e2958947 add refcount check 2021-02-14 00:42:42 +01:00
Brendan Hansknecht
a783be3332 gen_dev: add switch statements. This also fixes a small bug with comparisons. 2021-02-13 15:35:55 -08:00
Folkert
27c3a7c8f2 only refcount filled cells 2021-02-14 00:33:07 +01:00
Folkert
49bba11e06 refactor findIndex and insert 2021-02-14 00:25:44 +01:00
Folkert
b2e626ab0c Dict.insert WIP 2021-02-13 23:32:01 +01:00
Folkert
84e4cbc859 hook up compare with dict wrapper 2021-02-13 19:49:22 +01:00
Folkert
e7efcb74e6 Merge remote-tracking branch 'origin/gen-equality' into dict-insert 2021-02-13 19:45:33 +01:00
Folkert
63b4d1dd65 don't reset slots when making unique 2021-02-13 19:42:35 +01:00
Folkert
16143bc06e first steps for Dict.keys and Dict.values 2021-02-13 18:35:36 +01:00
Folkert
927ba11e64 implement inc/dec for dicts 2021-02-13 16:56:00 +01:00
Folkert
685ae620a1 Merge remote-tracking branch 'origin/trunk' into dict-insert 2021-02-13 16:41:23 +01:00
Folkert
e9f2d9d608 work on refcount 2021-02-13 16:41:13 +01:00
Folkert
ac5eb0f6f6 Dict.get 2021-02-13 16:12:45 +01:00
Brendan Hansknecht
d5d067be1f
Merge branch 'trunk' into gen_dev/funcs 2021-02-12 21:12:08 -08:00
Brendan Hansknecht
c609df2d74 gen_dev: generate all functions they may be need if a function pointer is used 2021-02-12 19:42:08 -08:00
Brendan Hansknecht
95be1a1b6d gen_dev: add ability to pass arguments to functions 2021-02-12 19:32:34 -08:00
Folkert
c04b3846c7 fix typo 2021-02-13 03:04:49 +01:00
Folkert
0f53665afa fix tests 2021-02-13 02:37:41 +01:00
Brendan Hansknecht
01a86aaa9c Merge branch 'trunk' into gen_dev/funcs 2021-02-12 17:04:49 -08:00
Folkert
b8ec7d1e69 Merge remote-tracking branch 'origin/trunk' into trunk 2021-02-13 02:03:45 +01:00
Folkert
bacc7a9c6b fuse RC operations on records/closures 2021-02-13 02:03:36 +01:00
Brendan Hansknecht
fc3bbb9fbc Merge remote-tracking branch 'origin' into gen_dev/funcs 2021-02-12 17:02:36 -08:00
Brendan Hansknecht
5a3ec0c0ac Switch to base pionter offset addressing.
This change will be needed to deal with passing function arguments.
Without this change, we would need to do multiple passes due to function
arguments being on top of the stack and conflicting with variables.
2021-02-12 17:02:25 -08:00
Richard Feldman
5b83ec719e
Merge branch 'trunk' into gen-equality 2021-02-12 19:37:09 -05:00
Richard Feldman
014d6d3186
Merge branch 'trunk' into type-annotation-parse-errors 2021-02-12 19:32:34 -05:00
Richard Feldman
959ac9b140
Fix typo 2021-02-12 19:31:18 -05:00
Richard Feldman
baaf621b88
drop commented-out dbg! 2021-02-12 19:22:38 -05:00
Richard Feldman
548c3c3f15
fix typo 2021-02-12 19:21:38 -05:00
Richard Feldman
76a9461cfe
Merge branch 'trunk' into gen-equality 2021-02-12 19:13:01 -05:00