Skip to content

fix(builtins): awk array features — SUBSEP, multi-subscript, pre-increment#477

Merged
chaliy merged 1 commit intomainfrom
claude/fix-396-Y2nIj
Mar 2, 2026
Merged

fix(builtins): awk array features — SUBSEP, multi-subscript, pre-increment#477
chaliy merged 1 commit intomainfrom
claude/fix-396-Y2nIj

Conversation

@chaliy
Copy link
Contributor

@chaliy chaliy commented Mar 2, 2026

Summary

  • Initialize SUBSEP to \x1c in AwkState::default()
  • Parse multi-subscript arr[e1,e2] joining expressions with SUBSEP
  • Handle ++arr[key] and --arr[key] in pre-increment/decrement parser

Closes #396

…ement

- Initialize SUBSEP to \x1c (ASCII FS) in AwkState::default()
- Parse multi-subscript arr[e1,e2] joining expressions with SUBSEP
- Add SUBSEP_CONCAT BinOp evaluation
- Handle ++arr[key] and --arr[key] in pre-increment/decrement parser

Closes #396
@chaliy chaliy force-pushed the claude/fix-396-Y2nIj branch from 3aa5c76 to 9d92c1b Compare March 2, 2026 18:16
@chaliy chaliy merged commit eced59e into main Mar 2, 2026
17 checks passed
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.

fix(builtins): awk array assignment fails with field refs and compound subscripts

2 participants