f3a2bb4451bf36b40f8c9036a1156946b4bc7919
Port tests: - "destructure" (implement assign_destructure in expectVarDeclExprStatement) - "infix operators" (partial — orelse as discard target deferred) - "pointer attributes" (fix ** to parse inner modifiers per upstream) - "slice attributes" (fix sentinel+align to use ptr_type node) Fix test bodies to match upstream verbatim: - "block with same line comment after end brace" - "comments before var decl in struct" - "comments before global variables" - "comments in statements" - "comments before test decl" Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
zig0 aspires to be an interpreter of zig 0.15.1 written in C.
Testing
Quick test:
zig build fmt && zig build
Debugging tips
Test runs infinitely? Build the test program executable:
$ zig build test -Dno-exec
And then run it, capturing the stack trace:
gdb -batch
-ex "python import threading; threading.Timer(1.0, lambda: gdb.post_event(lambda: gdb.execute('interrupt'))).start()"
-ex run
-ex "bt full"
-ex quit
zig-out/bin/test
You are welcome to replace -ex "bt full" with anything other of interest.
Languages
Zig
94.9%
C
4.1%
C++
0.6%
Python
0.1%