kaitai_struct_compiler
kaitai_struct_compiler copied to clipboard
Kaitai Struct: compiler to translate .ksy => .cpp / .cs / .dot / .go / .java / .js / .lua / .nim / .php / .pm / .py / .rb
This PR the result of revision of how generation of repeated attributes is implemented due to which a number of bugs was found and fixed: - `TypeValidator` incorrectly define `_`...
This PR adds missing validation for `valid` keys. Some problems not solved, because I do not know what is the prefered way for you to solve them. Namely: - some...
It seems relatively new error, but the code was not changed since 2021... Fixes errors like: ``` [info] - style_bad_num_inst_value *** FAILED *** [info] [style_bad_num_inst_value.ksy: /instances/size_of_foo/id: [info] warning: use `num_foos`...
Adds various basic helpers to compiled enums, including - enumValue.String() -> prints enum instance name - enumValue.IsAEnumType() -> true if enumValue is valid instance - EnumTypeStrings() -> []string of enum...
This avoids a wrong sign conversion when the loop expression casts to a negative signed int. Fixes: https://github.com/kaitai-io/kaitai_struct/issues/1220 ---- I did intend to add a test for this based on...
- This change improves debugging capabilities by providing more detailed information about enum type parameters in the generated JavaScript code. - Test @ https://github.com/kaitai-io/kaitai_struct_tests/pull/131