638 B
638 B
zig0 aspires to be an interpreter of zig 0.15.1 written in C.
Testing
Quick test:
zig build
If it complains about formatting, here is a mutable command that will fix it:
zig build fmt
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.