kaitai_struct_compiler
kaitai_struct_compiler copied to clipboard
Allow `repeat-expr` and `repeat-until` keys without a `repeat` key
Should be merged together with changes in tests: https://github.com/kaitai-io/kaitai_struct_tests/pull/94
Fixes https://github.com/kaitai-io/kaitai_struct/issues/776
Why not
repeat:
expr: 10
instead?
The discussion about possible changes was so long ago that I completely forgot about this solution. Anyway, implementing completely new solution requires a bit more time and this change is simple and backward-compatible