Commit 3b9c623
committed
feat: Add wildcard slice expression support
Implements wildcard slice syntax for arrays and lists:
- arr.[*] selects all elements
- matrix.[0.., *] for multi-dimensional slicing
- Consistent with F# 6.0+ slice syntax
The grammar already supported '*' in slice_range but wasn't creating
a proper AST node. This change aliases '*' as wildcard_slice for
clearer AST representation.
Tests added for:
- Simple wildcard slice: arr.[*]
- 2D array row slice: matrix.[0.., *]
- 2D array column slice: matrix.[*, 0..]1 parent 5141851 commit 3b9c623
File tree
5 files changed
+5483
-5388
lines changed- fsharp
- src
- test/corpus
5 files changed
+5483
-5388
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
987 | 987 | | |
988 | 988 | | |
989 | 989 | | |
990 | | - | |
| 990 | + | |
991 | 991 | | |
992 | 992 | | |
993 | 993 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
3375 | 3375 | | |
3376 | 3376 | | |
3377 | 3377 | | |
3378 | | - | |
3379 | | - | |
| 3378 | + | |
| 3379 | + | |
| 3380 | + | |
| 3381 | + | |
| 3382 | + | |
| 3383 | + | |
| 3384 | + | |
3380 | 3385 | | |
3381 | 3386 | | |
3382 | 3387 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
3160 | 3160 | | |
3161 | 3161 | | |
3162 | 3162 | | |
| 3163 | + | |
| 3164 | + | |
| 3165 | + | |
| 3166 | + | |
3163 | 3167 | | |
3164 | 3168 | | |
3165 | 3169 | | |
| |||
4522 | 4526 | | |
4523 | 4527 | | |
4524 | 4528 | | |
4525 | | - | |
| 4529 | + | |
4526 | 4530 | | |
4527 | 4531 | | |
4528 | 4532 | | |
4529 | | - | |
| 4533 | + | |
4530 | 4534 | | |
4531 | 4535 | | |
4532 | 4536 | | |
| |||
4576 | 4580 | | |
4577 | 4581 | | |
4578 | 4582 | | |
| 4583 | + | |
| 4584 | + | |
| 4585 | + | |
| 4586 | + | |
4579 | 4587 | | |
4580 | 4588 | | |
4581 | 4589 | | |
| |||
0 commit comments