Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

repeat-until support #18

Closed
GreyCat opened this issue Aug 10, 2016 · 2 comments
Closed

repeat-until support #18

GreyCat opened this issue Aug 10, 2016 · 2 comments
Assignees
Milestone

Comments

@GreyCat
Copy link
Member

GreyCat commented Aug 10, 2016

Quoting a proposal by @LogicAndTrick:

I was going to make a proposal at some point for something like this to repeat until a certain condition is met:

seq:
  - id: number
    type: u1
    repeat: until
    repeat-until: value == 0 # where `value` is the last value that was read

Hopefully something like that can be possible with whatever the new syntax might be.

@GreyCat
Copy link
Member Author

GreyCat commented Aug 19, 2016

Implemented it, please take a look at kaitai-io/kaitai_struct_compiler#15

@GreyCat GreyCat added this to the v0.5 milestone Aug 19, 2016
@GreyCat
Copy link
Member Author

GreyCat commented Aug 28, 2016

Considering this closed, all tests seem to work.

@GreyCat GreyCat closed this as completed Aug 28, 2016
krisutofu pushed a commit to krisutofu/kaitai_struct that referenced this issue Jan 2, 2022
Update maven dependency to correct version.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant