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
Richard Feldman
6b183b1bcc
Handle builtin defs in canonicalize_module_defs
2020-10-25 01:42:10 -04:00
Anton-4
12821bf321
replaced deprecated std::u16::MAX with u16::MAX
2020-10-21 14:35:36 +02: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
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
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
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
Richard Feldman
f35e43768a
Get things compiling
2020-08-31 23:13:50 -04:00
Chad Stearns
30046d1ad4
basic List.keepIf set definition, but no implementation
2020-08-29 15:47:11 -04:00
Chad Stearns
800b99d165
Try different List.map unique implementation
2020-08-22 19:46:29 -04:00
Chad Stearns
a81504720b
Str.concat tests and definition set up
2020-08-15 02:45:52 -04:00
Chad Stearns
0a725eff3c
Base definition of List.map, but not real implementation, and the tests fail
2020-08-14 02:10:20 -04:00
Folkert
b4c5c2f793
add variable to list
...
stores the list type, so we can know whether it is unique
2020-08-10 21:05:57 +02:00
Richard Feldman
d4705f2f98
Merge branch 'trunk' into refcount
2020-08-08 19:54:10 -04:00