Commit graph

754 commits

Author SHA1 Message Date
Luke Boswell
f1d568b848
WIP try simplification 2024-04-14 13:45:05 +10:00
Luke Boswell
8b9e08bd76
WIP try simplification 2024-04-14 13:45:05 +10:00
Luke Boswell
85b76a14b4
cleanup, add some docs 2024-04-14 13:45:05 +10:00
Luke Boswell
0578db8685
move suffixed things into separate file 2024-04-14 13:45:05 +10:00
Luke Boswell
4fa58b60d8
remove excessive hashes in multilin string literal 2024-04-14 13:45:04 +10:00
Luke Boswell
c5ff88e94a
fix for ValueDefs with annotation, test for closures 2024-04-14 13:45:04 +10:00
Luke Boswell
79fc499c31
support multiple defs and statements 2024-04-14 13:45:04 +10:00
Luke Boswell
81aa6a0356
fix test failure 2024-04-14 13:45:04 +10:00
Luke Boswell
78797da661
cargo fmt 2024-04-14 13:45:04 +10:00
Luke Boswell
6f607aba11
WIP support nested suffixes 2024-04-14 13:45:03 +10:00
Luke Boswell
0d7b483c6e
WIP support nested suffixes 2024-04-14 13:45:03 +10:00
Luke Boswell
310b4d1b5a
WIP support nested suffixes 2024-04-14 13:45:03 +10:00
Luke Boswell
5a91a4f78a
WIP support nested suffixes 2024-04-14 13:45:03 +10:00
Luke Boswell
2200916c2b
WIP unwrapping suffixed expression 2024-04-14 13:45:03 +10:00
Luke Boswell
467cdf8226
changes 2024-04-14 13:45:03 +10:00
Luke Boswell
0d2afe4111
use # in ident 2024-04-14 13:45:02 +10:00
Luke Boswell
b010e8caba
desugar suffixed If-Then-Else expression 2024-04-14 13:45:02 +10:00
Luke Boswell
d08a51b134
cargo fmt 2024-04-14 13:45:02 +10:00
Luke Boswell
69a3a3c477
cleanup 2024-04-14 13:45:02 +10:00
Luke Boswell
5ae188c08f
cleanup 2024-04-14 13:45:01 +10:00
Luke Boswell
b8ec53738a
fix desugar for suffixed nodes 2024-04-14 13:45:01 +10:00
Luke Boswell
fac52f7408
parse statements correctly 2024-04-14 13:45:01 +10:00
Luke Boswell
997284e113
parse suffixed statements as defs 2024-04-14 13:45:00 +10:00
Luke Boswell
3c3e523b45
add suffixed to Identifer and QualifiedIdentifier 2024-04-14 13:45:00 +10:00
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