Skip to content

Compiler: add support for slices#465

Open
chqrlie wants to merge 1 commit into
c2lang:masterfrom
chqrlie:slices
Open

Compiler: add support for slices#465
chqrlie wants to merge 1 commit into
c2lang:masterfrom
chqrlie:slices

Conversation

@chqrlie

@chqrlie chqrlie commented Mar 16, 2026

Copy link
Copy Markdown
Contributor
  • slice syntax is a[start?:count?] or a[start?:count?:step]
  • designated array initializers accept a range index
  • array initialisation checker updated for designated ranges
  • bit selections are mutated during analysis as BitSelectionExpr

@chqrlie
chqrlie force-pushed the slices branch 5 times, most recently from 0f22bd7 to 2f96cd2 Compare March 24, 2026 13:50
@chqrlie
chqrlie force-pushed the slices branch 7 times, most recently from 859cb67 to 8d97a1f Compare April 2, 2026 12:58
@chqrlie
chqrlie force-pushed the slices branch 6 times, most recently from e8fc9ce to c6c2a84 Compare April 11, 2026 10:58
@chqrlie
chqrlie force-pushed the slices branch 9 times, most recently from 3c83a37 to 63f61d5 Compare April 16, 2026 07:34
@chqrlie
chqrlie force-pushed the slices branch 3 times, most recently from 81906e7 to 1daaf7d Compare April 20, 2026 22:26
@chqrlie
chqrlie force-pushed the slices branch 9 times, most recently from 4eb3a63 to 583df7a Compare April 27, 2026 18:23
@chqrlie
chqrlie force-pushed the slices branch 4 times, most recently from 9ab9322 to 33e2da9 Compare May 5, 2026 19:31
@chqrlie
chqrlie force-pushed the slices branch 3 times, most recently from 000f8e4 to dfb7c45 Compare May 14, 2026 15:02
@chqrlie
chqrlie force-pushed the slices branch 3 times, most recently from b856cb5 to 2d61e24 Compare July 5, 2026 15:02
@chqrlie
chqrlie force-pushed the slices branch 4 times, most recently from 3077583 to fe895fe Compare July 13, 2026 21:34
* slice syntax is a[start?:count?] or a[start?:count?:step]
* bit selections are mutated during analysis as `BitSelectionExpr`
* array slices are not supported in expressions yet
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant