writeonce/compiler/bin/dune
shoney.arickathil 012562290d feat(compiler): Tasks 1-4 — scaffold, diagnostics, lexer, declaration parser
- Task 1: OCaml/dune scaffold with woc CLI (exit codes 0/1/2), just woc-build/woc-test
- Task 2: Diagnostics module — WO-E coded diagnostics with excerpts, related sites, ordered dedup collector, exit-code decision
- Task 3: Newline-significant lexer mirroring rt conventions (self/me/subscribe/insert stay idents), --dump-tokens, golden test framework with bless mode
- Task 4: Declaration parser — class/type/interface/fn signatures, @gc/@table annotations, brace-depth skip-on-block (service/policy/on), decl-level recovery, --dump-ast goldens
- 13 golden fixtures (tokens + AST) with WOC_BLESS=1 support
- just woc-test green (14 diag + 93 runner checks)
2026-08-10 09:00:08 +02:00

17 lines
426 B
Text

(executable
(name main)
(libraries woc_lib))
; dune names the built executable after its main module (Main, from
; main.ml), which lands in the build directory as main.exe. Copy it to
; the plain "woc" name and fold that into this directory's default
; alias so a bare `dune build` produces the woc binary directly.
(rule
(target woc)
(deps main.exe)
(action
(copy main.exe woc)))
(alias
(name default)
(deps woc))