A bytecode compiler and interpreter written in zig.
Build debug
makeWill generate
blitzc-debug: compilerblitz-debug: virtual machinebzc-objdump-debug: bytecode disassemblerblitz-diff-debug: bytecode diff utility
Make debug and run tests
Builds then runs ./test
make testMake prod
make prodWill generate
blitzc: compilerblitz: virtual machinebzc-objdump: bytecode disassemblerblitz-diff: bytecode diff utility
Run all working test files
Runs from blitzc-debug exe in build. Expected to have been built already
./testRun specific test file
Runs from zig run ...
./test [file name]Run a file that matches a pattern
Use the -p flag, runs from zig run ...
./test -p structsIf you clone to experiment, it might be helpful to source the env.sh file. It adds the bin directory to the path so you have easier access to the executables.
By Jackson Otto