add: README, LICENSE and initial project structure
All checks were successful
Zig Project Action / Lint, Spell-check and test zig project (push) Successful in 1m44s

This commit is contained in:
2025-04-25 18:35:54 +02:00
parent a3d1452d5a
commit 1fb3ed0496
9 changed files with 81 additions and 0 deletions

23
build.zig Normal file
View File

@@ -0,0 +1,23 @@
const std = @import("std");
pub fn build(b: *std.Build) void {
const target = b.standardTargetOptions(.{});
const optimize = b.standardOptimizeOption(.{});
const lib_mod = b.createModule(.{
.root_source_file = b.path("src/root.zig"),
.target = target,
.optimize = optimize,
});
const lib = b.addLibrary(.{
.linkage = .static,
.name = "parser",
.root_module = lib_mod,
});
b.installArtifact(lib);
const run_lib_unit_tests = b.addRunArtifact(b.addTest(.{ .root_module = lib_mod }));
const test_step = b.step("test", "Run unit tests");
test_step.dependOn(&run_lib_unit_tests.step);
}