# Ksc v0.1.0 - Table of Contents

> An Elixir implementation of the Kaitai Struct compiler and runtime.
Compiles .ksy format descriptions into Elixir modules that parse binary data into structured maps.

## Pages

- [Ksc](readme.md)
- [LICENSE](license.md)

## Modules

- [Ksc](Ksc.md): Kaitai Struct Compiler for Elixir.
- [Ksc.Compiler.ElixirCompiler](Ksc.Compiler.ElixirCompiler.md): Generates Elixir source code from ClassSpec structs.
- [Ksc.Compiler.Utils](Ksc.Compiler.Utils.md): Name conversion and code generation helpers.
- [Ksc.Expression](Ksc.Expression.md): Translates KSY expression language to Elixir code strings.
Supports :parse mode (var_field), :instance mode (result[:field]), :repeat_until mode.

- [Ksc.Format.AttrSpec](Ksc.Format.AttrSpec.md): Sequence attribute specification.
- [Ksc.Format.ClassSpec](Ksc.Format.ClassSpec.md): Top-level type definition from a .ksy file.
- [Ksc.Format.EnumSpec](Ksc.Format.EnumSpec.md): Enumeration specification.
- [Ksc.Format.InstanceSpec](Ksc.Format.InstanceSpec.md): Instance specification - either a value instance or a parse instance.
- [Ksc.Parser](Ksc.Parser.md): Parses KSY YAML into internal format structs.
- [Ksc.Stream](Ksc.Stream.md): Lightweight runtime for Kaitai Struct generated parsers.
- [Ksc.Yaml](Ksc.Yaml.md): YAML parser for KSY files. Delegates to yaml_elixir and normalizes keys to strings.

## Mix Tasks

- [mix ksc.compile](Mix.Tasks.Ksc.Compile.md): Compiles .ksy files to Elixir source files.

