Luke Boswell
42fdcb7ff1
Make unit assignment optional for suffixed defs
2024-04-14 13:44:59 +10:00
Fabian Schmalzried
4269608ebf
remove i128OfDec
2024-04-01 21:08:12 +02:00
Fabian Schmalzried
11998b9cc8
f32FromParts and f64FromParts for repl
2024-04-01 21:08:10 +02:00
Fabian Schmalzried
473b8ef2d3
f32/f64toParts in repl only
2024-04-01 21:08:09 +02:00
Fabian Schmalzried
64e9899cad
Add Num.withDecimalPoint
2024-04-01 21:08:09 +02:00
Fabian Schmalzried
9c664172dd
Add Num.withoutDecimalPoint
2024-04-01 21:08:09 +02:00
Luke Boswell
4035221dac
desugar no args correctly e.g. Stdin.line!
2024-03-21 19:25:34 +11:00
Luke Boswell
5e2fc1c3fd
handle suffixed after pizza |>
2024-03-21 18:04:52 +11:00
Luke Boswell
a983ab8341
use CalledVia::BangSuffix
2024-03-21 15:51:21 +11:00
Luke Boswell
a394f1b4cf
update from review comments
2024-03-21 15:46:14 +11:00
Luke Boswell
e74501981e
fmt and clippy fixes
2024-03-20 12:31:04 +11:00
Luke Boswell
cc10df6db9
handle Suffixed is in the middle of our Defs
2024-03-20 11:48:08 +11:00
Luke Boswell
248c2a3f34
handle only one def that is Suffixed
2024-03-20 09:57:48 +11:00
Luke Boswell
c4b459b436
handle Suffixed in first index
2024-03-20 09:49:12 +11:00
Luke Boswell
d6a01b3014
WIP stuck on removing Defs
2024-03-19 16:03:29 +11:00
Luke Boswell
406ffdffab
WIP partial implementation for desugar_defs_node_suffixed
2024-03-19 12:57:30 +11:00
Luke Boswell
3b2e9e36b8
rename operator.rs to desugar.rs
2024-03-17 15:57:27 +11:00
Luke Boswell
8bbbd768ec
add snapshot test for suffixed expr
2024-03-15 14:39:21 +11:00
Richard Feldman
6f84e24fa5
Merge remote-tracking branch 'origin/main' into more-dollars
2024-02-26 23:06:23 -05:00
JRI98
acbbdd0f7b
Improve handling of multi pattern unbound variables
2024-02-23 15:22:23 +00:00
Richard Feldman
739565e836
Revert "Remove obsolete ListLenUsize"
...
This reverts commit ad1bca4ac9c40d336522f944df60d61a814435dd.
2024-02-17 13:20:34 -05:00
Richard Feldman
87d4760356
Remove obsolete ListLenUsize
2024-02-17 13:20:34 -05:00
Richard Feldman
37b154df4f
Remove Str.fromUtf8Range
...
Seamless slices make this obsolete!
2024-02-17 13:20:33 -05:00
Richard Feldman
ada83561e5
Split ListLen into ListLenU64 and ListLenUsize
...
The usize one gets used internally for things like
pattern matches. This is both more efficient (means
they don't have to do unnecessary casts) and also
less error-prone due to e.g. comparing length to
capacity, which is usize.
2024-02-14 21:00:49 -05:00
Richard Feldman
24a38c4a26
Merge remote-tracking branch 'origin/main' into remove-nat
2024-02-11 12:26:36 -05:00
Luke Boswell
448c29353e
Merge pull request #6134 from faldor20/lsp_completion
...
Support for completion in the language server
2024-02-09 18:43:40 +11:00
Folkert de Vries
0e7fee4e7f
Merge pull request #6486 from roc-lang/remove-unused-lowlevel
...
Remove unused lowlevel StrGetCapacity
2024-02-04 13:57:46 +01:00
Folkert de Vries
4cbdf08a2d
Merge pull request #6499 from JRI98/fix_6174
...
Don't skip closure captures when fixing them
2024-02-04 13:57:18 +01:00
JRI98
be30e470a8
Don't skip closure captures when fixing them
2024-02-03 23:19:08 +00:00
Anton-4
3c7a834da1
update to new interpolation syntax
2024-02-02 13:39:10 +01:00
Richard Feldman
f79ff6d496
Remove unused lowlevel StrGetCapacity
2024-02-01 21:37:16 -05:00
Richard Feldman
aabd95404f
Merge remote-tracking branch 'origin/main' into remove-nat
2024-01-30 21:42:45 -05:00
Folkert
21b540751a
force interpolated variables to be of type string
2024-01-30 15:04:56 +01:00
Kiryl Dziamura
b3dfdb562b
crash on rem div by zero
2024-01-30 11:12:02 +01:00
Richard Feldman
7c19b42a99
Merge pull request #6457 from roc-lang/division-by-zero
...
Division by zero
2024-01-29 08:37:31 -05:00
Richard Feldman
3e27e18566
Merge remote-tracking branch 'origin/main' into remove-nat
2024-01-29 07:23:58 -05:00
Eli Dowling
c081bb7016
Removed LatestDocument and replaced it with a OnceLock
...
Signed-off-by: faldor20 <eli.jambu@yahoo.com>
removed unused imports
Signed-off-by: faldor20 <eli.jambu@yahoo.com>
2024-01-29 21:54:47 +10:00
Eli Dowling
a988ee29ff
scoping all working and patterns too
...
Signed-off-by: faldor20 <eli.jambu@yahoo.com>
2024-01-29 21:54:45 +10:00
Eli Dowling
049c0e6358
function params and local variables working
...
Signed-off-by: faldor20 <eli.jambu@yahoo.com>
2024-01-29 21:54:44 +10:00
Folkert
979128cf32
make division by zero (integer) not trap
2024-01-29 01:38:32 +01:00
Agus Zubiaga
eb68bf943a
Merge branch 'main' into module-params
2024-01-27 09:36:20 -03:00
Richard Feldman
fb84c9487d
Remove Num.Natural, Num.toNat, and Num.toNatChecked
2024-01-26 16:23:20 -05:00
Richard Feldman
9518d76cd8
Remove Num.bytesTo___ functions
...
These may be reintroduced in some form later,
but they don't handle endianness and it's not
clear builtins are the right place for them.
2024-01-26 16:23:19 -05:00
Richard Feldman
c4497f2c1c
Remove Nat from Num
2024-01-26 16:19:51 -05:00
Richard Feldman
ef030ae656
Update a comment
2024-01-26 16:06:06 -05:00
On vacation
4ee3431428
Merge branch 'main' into rust-1-72-upgrade
2024-01-26 13:39:34 +01:00
Richard Feldman
2970fc4384
Merge remote-tracking branch 'origin/main' into str-unicode
2024-01-21 12:30:16 -05:00
Folkert
f1ffc36efe
add List.clone
2024-01-20 20:29:07 +01:00
Agus Zubiaga
002493e32c
Load and can ingested file imports
...
Moves handling of ingested file imports from load to can, so that they
can be properly introduced in the scope they appear.
Example:
import "input.txt" as input : Str
image =
import "image.png" as bytes : List U8
# `bytes` is only available under `image`
decodePng bytes
...
2024-01-20 08:43:40 -03:00
Agus Zubiaga
7b3317dbb6
Update unused warnings for inline imports
...
Now that imports can be limited to smaller scopes than the entire module,
unused import warnings need to work like unused def warnings.
This commit moves unused import warnings discovery and reporting from load
to canonicalization where we can track their usage per scope.
This also fixes a longstanding bug where unused exposed names from an import
were not reported if they were only used in a qualified manner.
2024-01-20 08:43:36 -03:00