Commit graph

7445 commits

Author SHA1 Message Date
Sam Mohr
a292e070d4
Prefer and and or for boolean operators 2025-01-17 16:15:31 -08:00
Anton-4
3cc3118ffb
update snapshot 2025-01-17 17:46:46 +01:00
Anthony Bullard
d3c400b5e0
Merge pull request #7520 from gamebox/format-new-lambdas
Format all lambdas to new syntax
2025-01-16 16:55:10 -06:00
Sam Mohr
5859415e73
Prefix hidden vars with # 2025-01-16 10:49:51 -08:00
Anthony Bullard
1b43ffa579
Format all lambdas to new syntax 2025-01-16 08:03:44 -06: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
14d99c6907
update solve_expr and test_gen tests with map_ok 2025-01-15 21:30:19 -06:00
Ian McLerran
297dd0233e
update internal references to Result.map 2025-01-15 19:55:27 -06:00
Ian McLerran
326558337c
update mono tests 2025-01-15 19:55:26 -06:00
Ian McLerran
579beab901
Result.map to Result.map_ok 2025-01-15 19:55:26 -06:00
Anthony Bullard
8e1e1520e3
New Lambda Syntax with |...|
This adds parser support for the new lambda syntax.  It does not remove
the existing syntax, nor will the new syntax be retained in formatting.
That will be done in a separate PR to keep the two respective PRs
relatively small and easy to review.
2025-01-15 05:58:16 -06:00
Anthony Bullard
4e66910ef8
Add a few tests 2025-01-15 05:56:39 -06:00
Joshua Warner
d43ad92789
Introduce proper type for TypeVar's, mark anything not a lowercase ident as malformed 2025-01-14 19:30:33 -08:00
Joshua Warner
a9c25563b2
Merge pull request #7504 from joshuawarner32/can-fuzzing-fixes
Fix a round of canonicalization panics found in fuzzing
2025-01-13 21:55:57 -08:00
Anton-4
070de58416
Merge pull request #7507 from imclerran/fix-gramatical-error
Fix grammatical error in monomorphization borrower error message
2025-01-13 20:24:52 +01:00
Anton-4
af352e3d7b
Merge pull request #7503 from shua/shr
fix Num.shift_right_by to not mutating src register
2025-01-13 19:44:37 +01:00
Ian McLerran
5774095300
Fix grammatical error in borrower error message 2025-01-13 12:05:41 -06:00
Joshua Warner
5ebd6e0884
Only conditionally fuzz canonicalize 2025-01-11 20:24:35 -08:00
Joshua Warner
853dd5725b
Also handle large tuple indices in a.123 form 2025-01-11 20:24:35 -08:00
Joshua Warner
61bc0b3464
Resolve TODO around handling non-plain strings 2025-01-11 20:24:34 -08:00
Joshua Warner
e0ef01fa82
Fix two canonicalization crashes: try() and overflowed tuple indexes 2025-01-11 20:24:34 -08:00
Joshua Warner
7d464a2989
add failing test for ignored fields canonicalization 2025-01-11 20:24:33 -08:00
Joshua Warner
408379f8d3
Canonicalize the pattern in annotations 2025-01-11 20:24:30 -08:00
Sam Mohr
1a8f56e103
Merge pull request #7502 from smores56/move-specialize-types
Move specialize_types to new build folder
2025-01-11 16:59:54 -08:00
shua
c195cff8e3
fix Num.shift_right_by to not mutate src register
The intent of this change is to fix a bug calling `Num.shift_right_by(a, b)`
mutates `a`. This was happening in the dev backend only, and the cause was
some generated assembly which writes to register a is stored in.
2025-01-12 00:37:10 +01:00
Sam Mohr
8635848b12
Move specialize_types to new build folder 2025-01-11 15:07:49 -08:00
Luke Boswell
2331aa1d77
Merge pull request #7500 from joshuawarner32/pnc-fuzzing-fixes-2
More fuzzing fixes, some pnc some not
2025-01-12 08:45:35 +11:00
Joshua Warner
875e355b68
handle record access when checking for block string literals 2025-01-11 11:05:54 -08:00
Joshua Warner
6d2b635dbc
Don't turn pnc apply dbg into DbgStmt 2025-01-11 11:05:35 -08:00
Joshua Warner
6d324590da
Fix pipe indents in when 2025-01-11 11:05:35 -08:00
Joshua Warner
1cc97fcfa7
Fix else spacing 2025-01-11 11:05:34 -08:00
Joshua Warner
6b08f42d02
Fix more cases of when in guard 2025-01-11 11:05:34 -08:00
Joshua Warner
903b792fd3
Fix when in when guard 2025-01-11 11:05:33 -08:00
Joshua Warner
586dc3486f
Fix formatting of negative numbers in pnc apply patterns 2025-01-11 11:05:33 -08:00
Joshua Warner
2e4e4bb957
Fix placement of comma after implements in pnc apply patterns 2025-01-11 11:05:33 -08:00
Joshua Warner
2bbcbbd5c1
clippy fixes 2025-01-11 11:05:29 -08:00
Joshua Warner
0471993428
Further relax indentation of implements ability chains 2025-01-10 21:10:58 -08:00
Joshua Warner
7a1b3b8257
Allow funky indentation of implements clause, since we know it must be coming anyway 2025-01-10 21:10:57 -08:00
Joshua Warner
2bd03ef16b
Fix pnc apply in unary negate 2025-01-10 21:10:56 -08:00
Joshua Warner
05033ac40b
allow arrow to be an expr terminator in when guards 2025-01-10 21:10:56 -08:00
Joshua Warner
13a70c060d
Preserve info about whether a given dbg stmt was pnc or not, at least for now 2025-01-10 21:10:55 -08:00
Brendan Hansknecht
ec8aeaa15a
zig fmt 2025-01-10 20:39:38 -08:00
Brendan Hansknecht
7643f89781
Merge branch 'main' into simplify-refcount
Signed-off-by: Brendan Hansknecht <Brendan.Hansknecht@gmail.com>
2025-01-10 20:34:52 -08:00
Sam Mohr
1bb9f7f530
Merge pull request #7498 from HajagosNorbert/dec-to-str
remove unused var causing errors in debug tests.
2025-01-10 18:09:21 -08:00
Sam Mohr
528d1d2b69
Merge pull request #7497 from smores56/new-interpolation-syntax
Move to new interpolation syntax
2025-01-10 15:25:12 -08:00
Sam Mohr
0984732854
Fix out-of-date syntax snapshots 2025-01-10 13:08:13 -08:00
Norbert Hajagos
9689656845
remove unused var causing errors in debug tests. 2025-01-10 21:34:11 +01:00
Sam Mohr
b0a5b1c3d5
Fix broken RustGlue.roc interpolation 2025-01-10 12:30:18 -08:00
Luke Boswell
5d0b700730
Merge pull request #7493 from joshuawarner32/pnc-fuzzing-fixes
Fix some bugs in PNC formatting found via fuzzing
2025-01-11 06:58:23 +11:00