-
Notifications
You must be signed in to change notification settings - Fork 1
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
Support for list value instances #14
Comments
Originally I made this check because value instance can have an arbitrary expression and it's unclear would we able to process individual list elements. Maybe this check is unnecessary. Feel free to submit a PR. |
Here are the list value instances I've tried, which work OK:
Can you think of anything else to test? |
Thanks for the tests! To test struct you can use the following KSY: meta:
id: tests
seq:
- id: struct1
type: struct
- id: struct2
type: struct
instances:
value:
value: '[struct1, struct2]'
types:
struct:
seq:
- id: field
type: u1 |
KSY file:
Compiled Java code:
Right now, kaitai_struct_model creates a
SimpleNode
where thevalue
is an ArrayList, because of thisisPresent
check:f55d911#diff-35a4962b04608dbbd0bbf57c37dd15b866476c46f96151f5d70c9cef4b21ac93R169
I am wondering if the
isPresent
check is still needed - if I comment it out, it looks like everything works correctly.The text was updated successfully, but these errors were encountered: