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
Agus Zubiaga
287a8fa2e7
Merge branch 'main' into lower-module-params
2024-08-28 08:50:40 -03:00
Agus Zubiaga
8b9cb22f49
Add custom CalledVia for naked param vars
2024-08-27 13:39:20 -03:00
Sam Mohr
12df3a04de
Merge attempt
2024-08-19 23:34:05 -07:00
Sam Mohr
7c7485bb04
Merge pull request #7005 from smores56/deprecate-backpassing
...
Deprecate backpassing to prepare for eventual removal
2024-08-18 08:08:29 -04:00
Luke Boswell
4be6c5d4ce
implement Str.dropPrefix and Str.dropSuffix
2024-08-17 17:21:37 +10:00
Sam Mohr
50f6e11423
Deprecate backpassing to prepare for eventual removal
2024-08-16 22:36:04 -07:00
Sam Mohr
e169529ede
Remove barely used zstd dependency
2024-08-16 10:10:29 -07:00
Sam Mohr
3bc5c1dc12
Combine ! and ? into single TrySuffix AST node
2024-08-14 22:14:08 -07:00
Luke Boswell
2eb3e38b7f
Merge remote-tracking branch 'remote/main' into result-map-builtins
2024-08-14 17:26:10 +10:00
Luke Boswell
7aebee8c94
implement Result.mapBoth and Result.map2 builtins
2024-08-14 13:16:24 +10:00
Agus Zubiaga
762799052e
Merge branch 'main' into typecheck-module-params
2024-08-07 18:55:33 -03:00
Sam Mohr
bdb50912b8
Rename Task.seq -> Task.sequence
2024-07-31 13:35:36 -07:00
Luke Boswell
eca453d07f
Merge remote-tracking branch 'remote/main' into builtin-task
2024-07-29 16:05:51 +10:00
Joshua Warner
4f32f43048
Implement block / indent based parsing
...
... and enforce that defs can only occur in blocks (or, inside parenthesized expressions)
2024-07-27 13:34:16 -07:00