Commit graph

331 commits

Author SHA1 Message Date
Anton-4
c93e27ca9a
added List.keep_if_try! (#7804)
* added keep_if_try!

* cleanup types

* cleanup var name
2025-05-21 14:12:24 -05:00
Anton-4
882577bebc
added map_try! + walk_try! test (#7770)
* map_try! + walk_try! test

* update mono tests
2025-04-29 22:05:12 +02:00
Lars Frogner
560171c238
Add Num.[f32,f64,dec]_[to,from]_bits builtins and deprecate Num.[f32,f64]_[to,from]_parts (#7741)
* Add `Num.[f32,f64,dec]_[to,from]_bits` builtins

* Update mono tests

* Deprecate `Num.[f32,f64]_[to,from]_parts`
2025-04-18 10:10:45 +02:00
Joshua Warner
6d22c4dd7c
Several migration fixes and make some zig parser improvements based on migrated code in the wild (#7716) 2025-04-08 13:46:44 +02:00
Norbert Hajagos
fc0a9ec4cf
add with_ascii_uppercased and caseless_ascii_equals to Str 2025-01-23 15:21:11 +01:00
shua
6c29d7aa1f
Merge branch 'main' into fromutf-roc 2025-01-20 19:16:38 +01:00
Norbert Hajagos
8403f1ea19
with_ascii_lowercased zig builtin 2025-01-20 10:58:41 +01:00
Sam Mohr
fce14d31b0
Move desugaring to new roc_can_solo crate 2025-01-19 07:16:43 -08:00
shua
17624a9d2c
Merge branch 'main' into fromutf-roc 2025-01-18 01:58:14 +01:00
Sam Mohr
a292e070d4
Prefer and and or for boolean operators 2025-01-17 16:15:31 -08:00
Sam Mohr
474fd15dd4
Fix formatting 2025-01-16 03:21:34 -08:00
Sam Mohr
b73e4387ae
Implement ? binop operator 2025-01-16 02:44:32 -08:00
Ian McLerran
579beab901
Result.map to Result.map_ok 2025-01-15 19:55:26 -06:00
shua
414fecd14d
add fromUtf16 and 32, as well as lossy variants 2025-01-15 00:17:09 +01:00
Sam Mohr
eb1b5ffa26
Move to new interpolation syntax 2025-01-10 10:29:20 -08:00
Ian McLerran
56f53c56d2
add walk_try! to symbols.rs 2025-01-09 12:16:13 -06:00
Sam Mohr
2150ee2219
Remove Task from Roc 2025-01-08 17:00:40 -08:00
Anthony Bullard
898b3f55e5
Move PNC apply to separate Expr/Pattern variant 2025-01-08 14:47:49 -06:00
Sam Mohr
2aac2e01f8
Move builtins to snake_case with auto-case conversion 2025-01-04 03:29:01 -08:00
Anthony Bullard
af39ce57fb
Parens and Commas application syntax 2025-01-02 16:49:08 -06:00
Sam Mohr
3c49462fdd
Merge pull request #7406 from gamebox/issue-7089
Issue 7089: ?? operator
2024-12-27 10:15:53 -05:00
Anthony Bullard
7433ad63b6
Fix precendence 2024-12-26 10:53:47 -06:00
Anthony Bullard
c70ceb4f98
Issue 7089: ?? operator 2024-12-26 10:53:47 -06:00
Sam Mohr
2b6eaf48d8
Add Task.combine 2024-12-25 11:57:35 -08:00
Jared Ramirez
7daa008a9a
Add Num.fromBool 2024-12-24 10:10:20 -05:00
Luke Boswell
fdaaca8c8b
replace cargo deps with workspace in lower_parms, module, mono, parse, problem, roc_target, serialize, solve, solve_problem, specialize_types, test_* 2024-11-29 11:29:04 +11:00
Isaac Van Doren
d99c347998
rename Str.split 2024-11-15 21:12:23 -06:00
Isaac Van Doren
d0735f2661
remove List.split 2024-11-15 20:31:37 -06:00
Isaac Van Doren
efae03240e
fix ordering again 2024-11-12 22:12:02 -06:00
Isaac Van Doren
ae4d682806
change symbol ordering 2024-11-12 21:28:10 -06:00
Isaac Van Doren
8f0ca0c91c
fix numbering 2024-11-12 21:24:24 -06:00
Isaac Van Doren
f33a483502
merge main 2024-11-12 20:55:45 -06:00
Isaac Van Doren
ec59acea89
add List.splitOnList 2024-11-10 18:34:34 -06:00
Isaac Van Doren
0a7e98ab65
add List.splitOn 2024-11-10 18:20:31 -06:00
Agus Zubiaga
6d0cec253d
Add List.forEachTry! builtin 2024-11-09 23:13:49 -03:00
Agus Zubiaga
ce568c01c1
Add List.forEach! builtin 2024-11-09 22:23:19 -03:00
Agus Zubiaga
644702a2b3
Add Result.onErr! builtin 2024-11-09 22:17:33 -03:00
Isaac Van Doren
45b50bd131
add List.splitAt 2024-11-09 17:16:21 -06:00
Agus Zubiaga
e3c6b756d3
Make sure to drop suffix from symbols exposed to the host 2024-11-07 18:54:23 -03:00
Agus Zubiaga
a2f940be4e
Use byte literal instead of cast and ignore too_many_args 2024-11-07 18:54:22 -03:00
Agus Zubiaga
215de707fa
Report unsuffixed record literal field with effectful function 2024-11-07 18:54:20 -03:00
Agus Zubiaga
b80f44738f
Switch fx mode based on platform main too 2024-11-07 18:54:16 -03:00
Agus Zubiaga
2c8571537e
Get suffix from IdentId or Symbol
IdentId will now reserve the MSB for flagging whether the ident
is suffixed with a `!`.
We will use this later to constrain identifiers to be effectful or pure.
2024-11-07 18:54:16 -03:00
Sam Mohr
308defac46
Implement the try keyword with desugaring 2024-11-01 17:34:11 -07:00
Luke Boswell
760af4a04e
Merge remote-tracking branch 'remote/main' into str-dropping 2024-09-29 14:31:04 +10:00
Sam Mohr
2da08be8ef
Remove old record builder syntax 2024-09-21 04:44:44 -07:00
Anton-4
4662c82ea8
cleanup pf.Task 2024-09-16 18:12:20 +02:00
Elias Mulhall
49a3f2d68e
Extract helper function to get the IdentIds related to a symbol's module 2024-09-03 14:09:16 -04:00
Elias Mulhall
f356f6f7a0
Do not display generated symbol names in error messages
When an error message reports on a symbol that was generated during
canonicalization, use text like "This value" instead of "This `123`
value". Generated symbols use the identifier index as the symbol name,
since valid Roc variables cannot begin with a number so there's no
chance of collision. We don't want to display generated symbols to the
user, so when building the error message we check if the symbol's name
starts with a digit.
2024-09-03 14:00:46 -04:00
Anton-4
3c679f6338
Merge branch 'main' into lower-module-params 2024-08-30 16:29:46 +02:00