Commit graph

522 commits

Author SHA1 Message Date
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
Chad Stearns
5d0ec57461 List.walkRight definition in unique, std, builtins, etc. No implementation 2020-09-06 14:06:08 -04:00
Chad Stearns
13a644b03c Used correct low level op for List.keepIf definition 2020-09-05 19:00:55 -04:00
Chad Stearns
5bd88c8901 Merge branch 'trunk' of github.com:rtfeldman/roc into list_keepIf 2020-09-05 00:47:21 -04:00
Richard Feldman
be0c8cd59b clipp-w clipp-x clipp-y 2020-08-31 23:22:10 -04:00
Richard Feldman
37a254cef3 Interpolate strings by desugaring to Str.concat
We could definitely make this more efficent by
allocating enough space for the final string
and then copying the contents of each of the pieces
into it one by one. We don't do that yet though!
2020-08-31 23:14:45 -04:00
Richard Feldman
2e15443c8c Canonicalize unicode code point escapes 2020-08-31 23:13:50 -04:00
Richard Feldman
7682e09b0a Fix some fmt stuff 2020-08-31 23:13:50 -04:00
Richard Feldman
5b27e10095 Reproduce empty string parsing bug 2020-08-31 23:13:50 -04:00
Richard Feldman
274e7e786d Constrain string interpolation 2020-08-31 23:13:50 -04:00