Commit graph

60 commits

Author SHA1 Message Date
Ayaz Hafiz
0d763518f1
Make sure to push more symbols coming from Derived_synth to Derived_gen 2022-08-16 08:10:04 -05:00
Ayaz Hafiz
07cac2b4ce
Avoid non-consuming iterators 2022-08-15 11:11:37 -05:00
Ayaz Hafiz
ed23461165
Only open extension variable when feature is turned on 2022-08-15 11:11:36 -05:00
Ayaz Hafiz
9a7e280e9c
Add some more comments to record decoding 2022-08-15 11:11:36 -05:00
Ayaz Hafiz
0f58328d3d
Use wrap_in_decode_custom_decode_with for decode record 2022-08-15 11:11:36 -05:00
Ayaz Hafiz
23c6e6ea87
Add a wrap_in_decode_custom_decode_with helper for decode deriving 2022-08-15 11:11:36 -05:00
Ayaz Hafiz
07392a35a7
Populate type of decoded record completely 2022-08-15 11:11:35 -05:00
Ayaz Hafiz
e93145180e
Better debug symbols for derivers 2022-08-15 11:11:35 -05:00
Richard Feldman
639df6c8c0
Unify this_decode_with_var 2022-08-15 11:11:35 -05:00
Richard Feldman
b3b6a7ee9f
Type-check lots of step_field 2022-08-15 11:11:35 -05:00
Richard Feldman
c34427bbf9
Rename record_var to initial_state_var 2022-08-15 11:11:34 -05:00
Ayaz Hafiz
a276578642
Use some flex vars where they're needed for constraining 2022-08-15 11:11:33 -05:00
Ayaz Hafiz
e2e5faa28a
Rename to state_record_var 2022-08-15 11:11:33 -05:00
Richard Feldman
89f947f3ae
Finish setting up types for derived decoders 2022-08-15 11:11:33 -05:00
Richard Feldman
ddd462ec8b
Finish step 2022-08-15 11:11:33 -05:00
Richard Feldman
0579d84bf0
Set types for Keep/Skip 2022-08-15 11:11:32 -05:00
Richard Feldman
bccfa55179
Unify more derived decoder things 2022-08-15 11:11:32 -05:00
Richard Feldman
33548874d3
Drop some doc comments 2022-08-15 11:11:32 -05:00
Richard Feldman
8289458eee
Unify this_decode_with_var 2022-08-15 11:11:32 -05:00
Richard Feldman
13e3146ac1
Type-check lots of step_field 2022-08-15 11:11:32 -05:00
Richard Feldman
1587bfbeb5
Add type checking for finalizer 2022-08-15 11:11:32 -05:00
Richard Feldman
93d07079e1
Add type info to decoder_initial_state 2022-08-15 11:11:32 -05:00
Richard Feldman
7e12bcff1d
Rename variant_var to tag_union_var 2022-08-15 11:11:32 -05:00
Richard Feldman
6e008cf718
Finish building expressions for decoder_record 2022-08-15 11:11:31 -05:00
Richard Feldman
d3e96e9aa8
Expand record deriving decoding 2022-08-15 11:11:31 -05:00
Richard Feldman
bf8c253b13
Add some basic record decoding 2022-08-15 11:11:31 -05:00
Ayaz Hafiz
aa5e1e6a27
Build derive keys for derivable records 2022-08-15 11:11:30 -05:00
Richard Feldman
97e2900bf5
s/rtfeldman/roc-lang/g in links to GitHub repos 2022-08-12 15:24:09 -04:00
Ayaz
d4e81ccbd2
Merge pull request #3695 from rtfeldman/derive-decoding-list
Derive decoding for lists!
2022-08-05 10:41:24 -05:00
Richard Feldman
26ee1a01bc
Merge pull request #3691 from rtfeldman/cargo_verson_change
changed Cargo versions from 0.1.0 to 0.0.1
2022-08-05 09:13:04 -04:00
Ayaz Hafiz
8b63402b1c
Load non-function derived ability specializations correctly 2022-08-03 16:10:44 -05:00
Ayaz Hafiz
de3a12167b
Wrap list decoders in Decode.custom for now
Otherwise we get some weird panics in borrow, I think something is going
wrong with let-generalization
2022-08-03 16:09:22 -05:00
Ayaz Hafiz
ab3ff6e842
Add a list decoder 2022-08-03 14:57:38 -05:00
Ayaz Hafiz
f52e329393
Remove deriving decoding module for now 2022-08-03 10:18:02 -05:00
Ayaz Hafiz
b62c9d1faa
Support specialization of ability members that don't decay to functions 2022-08-03 10:16:22 -05:00
Ayaz Hafiz
44984d289c
Move derive Env to a util module 2022-08-03 08:56:26 -05:00
Ayaz Hafiz
e2179348c6
Add derive keys for decoders 2022-08-03 08:56:25 -05:00
Anton-4
6a15a7b41b
changed Cargo versions from 0.1.0 to 0.0.1 2022-08-03 11:41:19 +02:00
Ayaz Hafiz
c0e976f544
Wrap unification subs in Env 2022-07-28 08:57:33 -04:00
Ayaz Hafiz
4031770836
Mark branch patterns degenerate when they don't bind symbols body needs 2022-07-22 17:26:45 -04:00
Ayaz Hafiz
c647973dee
Wrap list encoders in Encode.custom for now 2022-07-16 12:30:15 -04:00
Ayaz Hafiz
e83175cf75
Add a deriver for encoding lists 2022-07-16 12:30:14 -04:00
Ayaz Hafiz
0dfdcf5523
Get rid of some dead deriving code
My favorite kind of dead code elimination
2022-07-16 12:28:39 -04:00
Ayaz Hafiz
568e8d9475
Remove explicit string deriving code in favor of immediate 2022-07-15 10:39:09 -04:00
Ayaz Hafiz
7ff180c1a5
Remove stale comments 2022-07-13 08:47:40 -04:00
Ayaz Hafiz
b782f013bd
Fix derive tests 2022-07-13 08:47:39 -04:00
Ayaz Hafiz
df9bcb1a0c
Use Derived_synth for synthesizing implementations, and Derived_gen for codegen 2022-07-13 08:47:39 -04:00
Ayaz Hafiz
63adb901b4
A couple hacks to get deriving of records working.. but it's working? 2022-07-13 08:47:38 -04:00
Ayaz Hafiz
719c774acf
Fix errors 2022-07-13 08:47:38 -04:00
Ayaz Hafiz
9826253785
Deriving string encoders works 2022-07-13 08:47:37 -04:00