Commit graph

32295 commits

Author SHA1 Message Date
Richard Feldman
182ec0bdaf
Update snapshots 2025-06-25 23:28:28 -04:00
Richard Feldman
8336ff0892
Fix snapshot.zig 2025-06-25 23:28:21 -04:00
Luke Boswell
9284044079
Merge pull request #7874 from roc-lang/record-snaps
Add various examples of using records using 0.1 syntax
2025-06-26 13:03:21 +10:00
Luke Boswell
d815a3aa58
zig lints 2025-06-26 12:57:01 +10:00
Luke Boswell
81b3e4a9e1
adress feedback 2025-06-26 12:36:45 +10:00
Luke Boswell
43bfa58cba
adderss feedback 2025-06-26 12:36:27 +10:00
Luke Boswell
c9941a44ae
Merge pull request #7875 from roc-lang/type-check-annotations
Basic annotation type-checking
2025-06-26 11:41:45 +10:00
Richard Feldman
7c35ec023d
Add a missing int_precision case 2025-06-25 21:25:43 -04:00
Richard Feldman
663f5f13e9
Use Zig camelCase function naming convention 2025-06-25 21:25:43 -04:00
Richard Feldman
3d6c5cd406
Remove unnecessary special-case 2025-06-25 21:25:43 -04:00
Richard Feldman
862e7cdfa1
Change FloatingPoint to Fraction 2025-06-25 21:25:43 -04:00
Richard Feldman
5c5935d711
Add basic type-checking of type annotations 2025-06-25 21:25:43 -04:00
Richard Feldman
c44123c3e5
Precision should say Decimal, not Dec 2025-06-25 21:03:58 -04:00
Richard Feldman
0fedbe6f1c
Make getAnnotation take a const* NodeStore 2025-06-25 21:03:21 -04:00
Richard Feldman
683d79449c
Fix canonicalization of type annotations 2025-06-25 21:03:09 -04:00
Luke Boswell
d4e9584c6a
run snapshot tool 2025-06-26 11:01:11 +10:00
Luke Boswell
c08ada6296
add various examples of using records using 0.1 syntax 2025-06-26 10:56:31 +10:00
Luke Boswell
df2faf46e0
Merge pull request #7863 from roc-lang/cache-node-store
Initial round-trip cache for `CIR.NodeStore`
2025-06-26 09:05:14 +10:00
Luke Boswell
141cf5d730
fix some broken things 2025-06-26 08:57:58 +10:00
Luke Boswell
fd66436681
Merge branch 'main' into cache-node-store 2025-06-26 08:51:33 +10:00
Luke Boswell
bb02ed465c
Merge pull request #7871 from kdziamura/binops_can
map binop tokens to CIR
2025-06-26 08:49:57 +10:00
Luke Boswell
f001616fb7
Merge remote-tracking branch 'remote/main' into binops_can 2025-06-26 08:43:04 +10:00
Richard Feldman
b8636e7456
Merge pull request #7850 from roc-lang/can-ints
Convert canonicalized ints to their real runtime representations
2025-06-25 18:36:49 -04:00
Richard Feldman
f37e486618
Clean up some imports 2025-06-25 18:25:11 -04:00
Richard Feldman
122234cf6c
Merge remote-tracking branch 'origin/main' 2025-06-25 18:22:33 -04:00
Luke Boswell
8899dd3c85
Merge pull request #7869 from roc-lang/if-then-else
Implement `if-then-else` in Can
2025-06-26 08:12:40 +10:00
Luke Boswell
6fe3868963
update snapshot 2025-06-26 08:06:45 +10:00
Luke Boswell
b916db022f
restore AST changes 2025-06-26 08:06:25 +10:00
Luke Boswell
611950f9a6
Merge pull request #7872 from roc-lang/push-kvxvkkzxrsmw
Don't store region in type problem
2025-06-26 07:31:59 +10:00
Jared Ramirez
1c1259e43a
Don't store region in type problem 2025-06-25 17:23:44 -04:00
Richard Feldman
21bb9dba26
Clean up some comments 2025-06-25 17:07:24 -04:00
Richard Feldman
74f11feac5
Support scientific notation in Dec 2025-06-25 14:44:50 -04:00
Richard Feldman
d4b4399ddf
Render 0.0 instead of 0e0 2025-06-25 13:39:52 -04:00
Richard Feldman
2497a84367
Add a bunch of edge case snapshot tests 2025-06-25 13:37:36 -04:00
Richard Feldman
19bf6d512c
Improve e-dec-small rendering 2025-06-25 13:23:16 -04:00
Richard Feldman
e869d03815
Merge remote-tracking branch 'origin/main' into can-ints 2025-06-25 13:13:46 -04:00
Richard Feldman
7d28df91fa
Fix fits_in_f32 2025-06-25 10:36:54 -04:00
Kiryl Dziamura
01844337b7
map binop tokens to CIR 2025-06-25 13:58:20 +02:00
Luke Boswell
3b988ce92c
update snapshots 2025-06-25 21:50:44 +10:00
Luke Boswell
6dd331b0fe
confirm if-branches working correctly 2025-06-25 21:49:25 +10:00
Luke Boswell
694587a14c
add doc comments 2025-06-25 21:39:49 +10:00
Luke Boswell
1ab445e8a8
WIP implement if-then chain optimisation 2025-06-25 21:22:06 +10:00
Luke Boswell
50f4d9e594
implement SExpr for if-then-else 2025-06-25 20:08:13 +10:00
Luke Boswell
8f8831c56e
Initial implementation if-then-else 2025-06-25 19:58:24 +10:00
Luke Boswell
d72e3f8040
Merge pull request #7864 from joshuawarner32/snapshot-html
Update snapshot tests to add html output with better visualization tools
2025-06-25 16:28:06 +10:00
Joshua Warner
501ba6e773
Remove auto-scroll and fix indentation 2025-06-24 20:26:32 -07:00
Richard Feldman
c6ef82a7ea
Fix more snapshots to reproduce fits_in_f32 bug 2025-06-24 22:32:13 -04:00
Richard Feldman
19fd7a30aa
Fix a snapshot test 2025-06-24 22:29:14 -04:00
Richard Feldman
1c8359e08e
Remove literal field 2025-06-24 22:10:18 -04:00
Richard Feldman
02dd427be3
Add small_dec_literal 2025-06-24 22:07:53 -04:00