2024-03-02 17:36:58 +00:00
|
|
|
# zig
|
|
|
|
|
2024-03-06 08:27:05 +00:00
|
|
|
A template for developing programs in ZIG.
|
|
|
|
|
|
|
|
## Zig commands:
|
|
|
|
|
|
|
|
```sh
|
|
|
|
zig init-exe # Initializes current dir with hello world
|
|
|
|
zig init-lib # Initializes current dir with library app.
|
|
|
|
|
|
|
|
zig ast-check # looks for compile errors in files.
|
|
|
|
zig build-exe # Create executable from source or object files.
|
|
|
|
zig build-lib # Create library from source or object files.
|
|
|
|
zig build-obj # Create object from sourec or object files.
|
|
|
|
zig run # Create execuatble and run immediately.
|
|
|
|
zig test # Create and run a test build.
|
|
|
|
zig translate-c # convert C code to Zig code.
|
|
|
|
|
|
|
|
zen ???
|
|
|
|
```
|
|
|
|
|