kaitai_struct_compiler icon indicating copy to clipboard operation
kaitai_struct_compiler copied to clipboard

Allow `repeat-expr` and `repeat-until` keys without a `repeat` key

Open Mingun opened this issue 2 years ago • 2 comments

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

Mingun avatar Dec 11 '21 17:12 Mingun

Why not

repeat:
  expr: 10

instead?

KOLANICH avatar Dec 11 '21 20:12 KOLANICH

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

Mingun avatar Dec 18 '21 20:12 Mingun