1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
//! Build script for the ZPL CLI binary.
//!
//! Embeds `parser_tables.json` into the binary so that `zpl lint` and other
//! commands work out of the box — no `--tables` flag needed (ADR 0005).
//!
//! Table resolution order:
//! 1. `../../generated/parser_tables.json` — workspace-level generated copy (freshest during dev)
//! 2. `data/parser_tables.json` — committed in-crate copy (works from crates.io tarball)
//!
//! If neither exists the binary is built without tables; `lint` and `print`
//! will require `--tables <PATH>` at runtime.
use Path;