Kaitai Struct Compiler for Elixir.
Compiles .ksy files into Elixir modules that can parse binary data.
Summary
Functions
Compile a .ksy file into an Elixir source code string.
Compile a .ksy file and load the resulting module into the VM. Returns {:ok, module_atom} on success.
Compile a KSY YAML string and load the resulting module.
Compile one or more .ksy files and write each top-level module as a separate .ex file.
Functions
Compile a .ksy file into an Elixir source code string.
Options:
:namespace— module namespace prefix to apply to all generated modules
Compile a .ksy file and load the resulting module into the VM. Returns {:ok, module_atom} on success.
Options:
:namespace— module namespace prefix to apply to all generated modules
Compile a KSY YAML string and load the resulting module.
Options:
:namespace— module namespace prefix to apply to the generated module
Compile one or more .ksy files and write each top-level module as a separate .ex file.
input_path— a single.ksyfile or a directory containing.ksyfilesoutput_dir— directory where.exfiles are written (created if it doesn't exist)opts— keyword list of options::namespace— module namespace prefix (default:"Ksc.Compiled")
Returns {:ok, [written_file_paths]} or {:error, reason}.