compactp 0.1.0-beta.1

A production-grade parser frontend for the Compact language (Midnight Network)
compactp-0.1.0-beta.1 is not a library.

compactp

Command-line parser frontend for the Compact language (Midnight Network).

compactp tokenizes, parses, and inspects Compact source, emitting a lossless CST, a typed AST, rustc-style human diagnostics, or a versioned JSON envelope for every command. It does not compile, type-check, or run Compact — it is a fast, embeddable syntactic frontend for tooling and editor backends.

Install

cargo install compactp

Usage

compactp parse path/to/program.compact
compactp --format json --pretty diag path/to/program.compact
compactp ast path/to/program.compact
compactp watch parse src/

See the full README for the command reference, JSON schema, exit codes, and the Compact compatibility matrix.

License

MIT