aboutsummaryrefslogtreecommitdiff
path: root/src/codegen.zig
diff options
context:
space:
mode:
authorAndrew Kelley <andrew@ziglang.org>2021-05-22 17:20:30 -0700
committerAndrew Kelley <andrew@ziglang.org>2021-05-22 17:23:16 -0700
commitb750e074c621b8679e14e53f9ecd2faa4432eff9 (patch)
treee76556b55be460c01787a18e40f5cc19482ade2a /src/codegen.zig
parent51701fb2da3562363d2c4966c5bf5d1b0ccad1a6 (diff)
downloadzig-b750e074c621b8679e14e53f9ecd2faa4432eff9.tar.gz
zig-b750e074c621b8679e14e53f9ecd2faa4432eff9.zip
stage2: rework astgen command into `zig ast-check`
This addresses the use case of quickly reporting AstGen compile errors for a file, for use with an IDE for example. * Rename from `zig asgen` to `zig ast-check` * It is now a command always available; not only in debug builds. * Give it usage text and proper CLI parsing. * Support reading from stdin when no positional arg is provided. * `-t` flag makes it print textual ZIR. Without this flag, it only provides compile errors. * Support `--color` parameter to override the tty detection closes #8871
Diffstat (limited to 'src/codegen.zig')
0 files changed, 0 insertions, 0 deletions