Commit graph

464 commits

Author SHA1 Message Date
Folkert
5d3f969a84 handle as aliases correctly 2020-10-30 00:20:10 +01:00
Folkert
b75880bed2 expand aliases before/during canonicalization 2020-10-29 22:33:18 +01:00
Folkert
a0c8915678 Merge remote-tracking branch 'origin/trunk' into fix-alias-inference 2020-10-29 14:40:55 +01:00
Chad Stearns
a9c0185225 Bringing in remote trunk 2020-10-28 21:24:15 -04:00
Folkert
ee23e5979d pass argument by reference 2020-10-29 00:35:10 +01:00
Folkert
047746c716 use only references (no Vec) in canonical AST 2020-10-29 00:12:44 +01:00
Folkert
93a1baad1d use only references (no Vec) in canonical AST 2020-10-26 01:03:33 +01:00
Folkert
7d2cc3aac2 WIP 2020-10-25 22:16:27 +01:00
Folkert
f13c28fe7f collect and instantiate hidden variables 2020-10-25 19:11:03 +01:00
Richard Feldman
6b183b1bcc Handle builtin defs in canonicalize_module_defs 2020-10-25 01:42:10 -04:00
Chadtech
5287a8db7d
Merge branch 'trunk' into str-split 2020-10-24 11:20:46 -04:00
Folkert
c2c0b30b8a improve instantiation 2020-10-24 01:39:56 +02:00
Folkert
c05ae4929f make sure aliases are added to the scope 2020-10-24 01:20:22 +02:00
Richard Feldman
b43ff799ff Revise a bunch of bucket stuff 2020-10-22 21:59:58 -04:00
Dimitar Apostolov
0ae045c1f3 Add canonical Expr for Str.startsWith 2020-10-22 23:24:29 +02:00
Anton-4
12821bf321 replaced deprecated std::u16::MAX with u16::MAX 2020-10-21 14:35:36 +02:00
Chad Stearns
af3882c8e3 Merging in remote trunk 2020-10-20 05:06:12 -04:00
Folkert
cfce0235f2 fix mono tests 2020-10-17 02:41:40 +02:00
Folkert
777b29259f remove unused function 2020-10-17 00:51:10 +02:00
Folkert
defa408e83 clippy fixes 2020-10-17 00:40:01 +02:00
Folkert
cbe78593c2 add extra pass that further trims down the captured symbols 2020-10-17 00:17:55 +02:00
Folkert
d931c8994a fix most type inference issues 2020-10-16 20:50:42 +02:00
Folkert
9b83c3ad58 optional record fields in patterns are bound 2020-10-16 15:29:21 +02:00
Folkert
e656363cc0 restrain the set of captured variables further 2020-10-16 01:42:06 +02:00
Folkert
40ffca2b7b IT WORKS 2020-10-16 00:18:40 +02:00
Folkert
b7e099a6c8 add captured symbols field to Closure 2020-10-15 16:08:35 +02:00
Chad Stearns
415a37a891 Merge branch 'trunk' of github.com:rtfeldman/roc into str-split 2020-10-15 05:26:33 -04:00
Folkert
de8ad07f2e Merge branch 'top-level-thunks' into sized-functions-inference 2020-10-14 21:58:53 +02:00
Folkert
30ff471a1b appease clippy 2020-10-12 22:19:13 +02:00
Folkert
2df86b6438 fix uniqueness bug
builtin defs were included twice, which threw off uniqueness inference
2020-10-12 22:16:10 +02:00
Folkert
2e8499f92c fix unused import bug 2020-10-12 16:12:27 +02:00
Folkert
c8e5acf142 code gen Accessor 2020-10-03 21:44:04 +02:00
Chad Stearns
d5dd03313a Merge branch 'trunk' of github.com:rtfeldman/roc into str-split 2020-10-03 00:21:37 -04:00
Folkert
e9f5c1a73c actually infer the size 2020-10-02 22:33:31 +02:00
Folkert
05d1f28e83 add logic to generate/solve closure size constraints 2020-10-02 20:46:47 +02:00
Folkert
2e1e87ad6a add closure size variable 2020-10-02 00:53:02 +02:00
Chad Stearns
43960cf1c6 unique and std work, check if delimiter is longer than str 2020-09-27 14:27:56 -04:00
Jared Ramirez
5cafbcd5ad Add Num.atan builtin 2020-09-26 19:00:51 -07:00
Folkert
b42a49035a fix some comments 2020-09-21 23:52:04 +02:00
Folkert
fb4a796e07 add different variants of addition 2020-09-21 23:38:10 +02:00
Folkert
95177eee5a integer addition operations 2020-09-20 20:21:45 +02:00
Jared Ramirez
665c7c7f9f Add Num.floor 2020-09-17 17:44:53 -07:00
Dimitar Apostolov
50223ae93c Add canonical Expr implementation for Num.powInt 2020-09-17 11:31:13 +02:00
Richard Feldman
5d3645350d Merge remote-tracking branch 'origin/trunk' into small-str 2020-09-16 02:23:06 -04:00
Jared Ramirez
a0402bca4d Add Num.ceiling 2020-09-15 18:37:45 -07:00
Richard Feldman
e3d0145894 Add Str.isEmpty 2020-09-12 21:56:53 -04:00
Dimitar Apostolov
51a6e0bde0 Add canonical Expr implementation for NumPow 2020-09-10 14:34:23 +02:00
Folkert
1b42831973 implement Num.compare 2020-09-08 19:40:18 +02:00
Richard Feldman
3c39a331d7 Remove obsolete parse::ast::TypedBody 2020-09-07 09:19:25 -04:00
Folkert
25cd0a2c02 codegen for walkRight 2020-09-06 22:03:46 +02:00