Skip to content

Zig 0.16.0 support#8

Merged
ityonemo merged 6 commits into
mainfrom
zig-0.16.0-support
May 18, 2026
Merged

Zig 0.16.0 support#8
ityonemo merged 6 commits into
mainfrom
zig-0.16.0-support

Conversation

@ityonemo
Copy link
Copy Markdown
Collaborator

No description provided.

ityonemo and others added 6 commits May 18, 2026 13:44
- Updates grammar.y with Zig 0.16.0 PEG grammar from official docs
- Adds grammar.0.16.y as reference copy
- Updates everything_test.exs to use zig-0.16.0 test fixtures
- Fixes IDENTIFIER_COLON typo to IDENTIFIER COLON in ParamDecl

Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
- Restructures Statement module to handle BlockStatement, ExprStatement,
  and Statement rules separately via tag-based dispatch
- Renames VarDeclExprStatement to VarAssignStatement
- Adds multi-value destructuring support in AssignExpr
- Adds varargs (...) handling in function parameter parsing
- Adds labeled switch support in PrimaryTypeExpr
- Removes invalid test for many-pointer with detailed alignment
  (BitAlign only valid for single pointers in 0.16.0)
- Fixes multiline string parsing to strip backslash prefix and
  trailing whitespace

Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
Tests the new Zig 0.16.0 feature allowing struct literals
as switch prong items for packed struct/union destructuring.

Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
The grammar renamed mb_utf8_literal to multibyte_utf8 and handles
UTF-8 byte sequences directly through byte ranges, making the
custom :utf8 parsec and char_to_string function unnecessary.

Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
@ityonemo ityonemo merged commit 3ab4aa2 into main May 18, 2026
7 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.

1 participant