Richard Feldman
b51c8b0ba4
Simplify some branch formatting logic
2022-07-13 23:16:08 -04:00
Richard Feldman
fa877e4184
Revert "Special-case records, lists, functions in def fmt"
...
This reverts commit c0b4ceea9b1d817c923eb82fa3ff7a36db90199f.
2022-07-13 22:32:42 -04:00
Richard Feldman
2be68189b4
Special-case records, lists, functions in def fmt
2022-07-13 22:32:42 -04:00
Richard Feldman
8178f22ce4
Always put a newline after a binop def body
2022-07-13 22:32:41 -04:00
Richard Feldman
9e19baef59
Don't indent next expr after multiline binop
2022-07-13 22:05:04 -04:00
Richard Feldman
2013e308f7
Update parser tests
2022-07-13 22:02:56 -04:00
Richard Feldman
d67d118e61
Don't require indenting alternative when
patterns
2022-07-13 22:02:38 -04:00
Richard Feldman
28e0a9e382
Don't indent multiple patterns
2022-07-13 21:50:30 -04:00
Richard Feldman
f066ee12dc
Don't indent multiline infix operators
2022-07-13 21:40:28 -04:00
Richard Feldman
a812369299
Merge pull request #3510 from rtfeldman/fix-loading
...
Fix some file loading bugs
2022-07-13 21:30:39 -04:00
Richard Feldman
da7c7ac5f2
Merge pull request #3525 from rtfeldman/3522
...
Num.toStr for f32, f64, Dec
2022-07-13 21:30:05 -04:00
Ayaz Hafiz
b50974e4ee
Update zig tests
2022-07-13 17:20:47 -04:00
Richard Feldman
b734986fc8
Use config_shorthand of "" but never a shorthand of ""
...
This was breaking bindgen's ability to work on some platform modules.
2022-07-13 17:03:32 -04:00
Richard Feldman
77afe0c1f1
Merge pull request #3503 from rtfeldman/string-memory-problems
...
String memory problems
2022-07-13 15:17:28 -04:00
Richard Feldman
af39bc5369
Revert "Don't invent shorthands"
...
This reverts commit 8b6d55df01
.
2022-07-13 13:24:48 -04:00
Richard Feldman
bf63c45b46
Compute src_dir from original filename
...
This fixed a bug where bindgen was providing cwd() for src_dir,
but actually the src_dir should have been based on the filename.
This prevents that problem from happening in the future!
2022-07-13 12:49:06 -04:00
Richard Feldman
8b6d55df01
Don't invent shorthands
2022-07-13 12:42:43 -04:00
Ayaz Hafiz
980c3f1421
Use decimal formatting for float Num.toStr
2022-07-13 12:35:49 -04:00
Ayaz Hafiz
b7b9227675
Num.toStr Dec for wasm
2022-07-13 12:24:07 -04:00
Richard Feldman
2efb605d68
Update mono tests
2022-07-13 12:20:16 -04:00
Richard Feldman
e744cd2a33
gen capacity operations in LLVM
2022-07-13 12:19:38 -04:00
Richard Feldman
af14efea91
Fix some comments
2022-07-13 12:19:38 -04:00
Richard Feldman
55ca75a37f
Update wrapper docs
2022-07-13 12:19:38 -04:00
Richard Feldman
aad922251d
Use Builtin::WRAPPER_* in gen_wasm
2022-07-13 12:19:38 -04:00
Richard Feldman
25facfa9c6
Expose capacity builtins
2022-07-13 12:19:37 -04:00
Ayaz Hafiz
66b8d145a9
Support Num.toStr for dec
2022-07-13 12:13:21 -04:00
Ayaz Hafiz
b7c312d449
Support Num.toStr for f32, f64
2022-07-13 12:13:01 -04:00
Folkert
9a51737a47
fix use after free
2022-07-13 10:34:30 +02:00
Richard Feldman
5f430034f3
roc format List.roc
2022-07-12 22:04:55 -04:00
Richard Feldman
455dde1ba4
Merge remote-tracking branch 'origin/trunk' into string-memory-problems
2022-07-12 22:03:49 -04:00
Ayaz Hafiz
8393778159
Typo
2022-07-12 21:15:33 -04:00
Ayaz Hafiz
6985b2b6a1
Pretty print opaque wrap functions
2022-07-12 21:15:14 -04:00
Ayaz Hafiz
f1a6ea6a40
Typecheck and compile opaque wrapping functions
...
This enables you to write something like
```
A := U8
List.map [1, 2, 3] @A
```
which will be compiled as if it was `List.map [1, 2, 3] \x -> @A x`.
Closes #3499
2022-07-12 18:38:03 -04:00
Folkert de Vries
d889f1fda9
Merge pull request #3498 from rtfeldman/no-line-numbers-in-runtime-error-function
...
Remove compiler-file/line-dependent runtime error messages
2022-07-12 23:04:06 +02:00
Folkert de Vries
846bab7425
Merge pull request #3493 from rtfeldman/deep-copy-var-in-body
...
mono copy: deep copy all vars in an expr
2022-07-12 23:02:27 +02:00
Folkert
bc24841921
Str.fromUtf8Range: take list argument as owned; make sure it's decremented in the small string case
2022-07-12 22:57:48 +02:00
Folkert
32207beedf
List.sublist: make sure input list is decremented if slice length is 0
2022-07-12 22:51:44 +02:00
Ayaz Hafiz
94142bf474
Remove compiler-file/line-dependent runtime error messages
...
This will help avoid the diff changes we've been running into often when
changes to mono line numbers change test results.
2022-07-12 15:17:19 -04:00
Richard Feldman
f5f137982c
Merge pull request #3432 from rtfeldman/fmt-multiline-when
...
Format multiline `when` branches
2022-07-12 12:54:11 -04:00
Ayaz Hafiz
669d69c4cf
Clippy
2022-07-12 11:29:11 -04:00
Ayaz Hafiz
e626bac931
Be extremely aggressive about inlining
2022-07-12 11:00:05 -04:00
Ayaz Hafiz
0274691813
Preserve uls_of_var when copying types
2022-07-12 10:58:21 -04:00
Ayaz Hafiz
4707b11727
Clone tag and field names across subs, add a test
2022-07-12 10:47:44 -04:00
Ayaz Hafiz
c915707c83
Get rid of arenas
2022-07-12 10:07:34 -04:00
Ayaz Hafiz
46fdda333f
Use a trait to do copies
2022-07-12 10:02:11 -04:00
Ayaz Hafiz
c3b2e9aa97
Add copy expr test
2022-07-12 09:30:51 -04:00
Ayaz Hafiz
7031d26299
mono copy: copy all vars in deep expr
2022-07-12 09:18:43 -04:00
Richard Feldman
c61795197f
Merge pull request #3478 from rtfeldman/toplevel-expect-captures
...
toplevel expect captures
2022-07-12 08:58:19 -04:00
Richard Feldman
f5fac8230f
Prune some unused dependencies
2022-07-11 20:51:41 -04:00
Folkert de Vries
e8c51d376b
Merge pull request #3473 from rtfeldman/wasm-test-wasm3
...
Use a faster Wasm runtime for test_gen
2022-07-11 22:50:50 +02:00