kaitai_struct_compiler icon indicating copy to clipboard operation
kaitai_struct_compiler copied to clipboard

Kaitai Struct: compiler to translate .ksy => .cpp / .cs / .dot / .go / .java / .js / .lua / .nim / .php / .pm / .py / .rb

Results 76 kaitai_struct_compiler issues
Sort by recently updated
recently updated
newest added

When you want to write enum value, you need to call method `translator.enumToInt`, which expects its arguments of type `Ast.expr`. So we need a way to convert `Identifier` to `Ast.expr.Name`....

serialization

Proposal for https://github.com/kaitai-io/kaitai_struct_java_runtime/issues/22. Annotations make it much easier to create a visualizer, especially, if input for visualizer is class, derived from kaitai-generated class and if https://github.com/kaitai-io/kaitai_struct/issues/672 will be implemented. Right...

Fixes https://github.com/kaitai-io/kaitai_struct/issues/683

Fix the internal compiler errors in case of incorrect usages, as in this example: ```yaml meta: id: internal_errors seq: - id: value1 type: u1 if: _ - id: value2 type:...

After this change all paths in errors will point to existing nodes in KSY file and node, where error is originated This PR introduces 10 new failures (76 vs 66)...

Document DataType classes and fix 2 related non-exhaustive warnings. The following warnings were fixed (from [this](https://github.com/kaitai-io/kaitai_struct_compiler/actions/runs/4156439688/jobs/7190229209) run): ``` [warn] /home/runner/work/kaitai_struct_compiler/kaitai_struct_compiler/compiler/shared/src/main/scala/io/kaitai/struct/precompile/CalculateSeqSizes.scala:106:5: match may not be exhaustive. [warn] It would fail on...

This fixes https://github.com/kaitai-io/kaitai_struct/issues/365 in a somewhat easy manner and can be improved in future if needed at all.

This PR improves situation with `_sizeof` / `sizeof`: - `switch-on` types with the same size in all arms now correctly have the constant size - `if` keys now correctly influence...