mix ksc.compile (Ksc v0.2.1)

Copy Markdown View Source

Compiles .ksy files to Elixir source files.

mix ksc.compile <input_path> --output <output_dir> [--namespace <namespace>] [--writer]

input_path is a single .ksy file or a directory containing .ksy files. --output specifies the directory where .ex files are written (created if needed). --namespace sets the module namespace prefix (default: Ksc.Compiled). --writer additionally generates to_binary/1 and to_file/2 for write-back.