feat: bootstrap skeleton + lexer (Phase 0)

This commit is contained in:
2026-05-30 21:01:26 +03:00
commit 1b708ec755
13 changed files with 1684 additions and 0 deletions
+26
View File
@@ -0,0 +1,26 @@
NIM := nim
SRC := src/main.nim
OUT := buxc
BUILD_DIR := build
.PHONY: all build test clean
all: build
build:
$(NIM) c -o:$(OUT) -d:release $(SRC)
dev:
$(NIM) c -o:$(OUT) $(SRC)
test: build
@echo "Running lexer tests..."
$(NIM) c -r tests/lexer_test.nim
@echo "Running integration tests..."
./$(OUT) new _test_tmp_pkg
./$(OUT) --version
clean:
rm -f $(OUT)
rm -rf $(BUILD_DIR)
rm -rf nimcache