Closed Rzial closed 3 years ago
Looks good! Just curious what is your use case for this?
I have a file that follows the following structure:
To be able to parse objects you need to get the entry on the header. That entry defines the object size and the preceding padding and the entries are ordered on the same way that objects are.
I see that makes sense. Thanks!
I will release a new version including your recent contributions.
This PR adds an
$index
variable for array parsing. I've only implemented this for thelength
parsing option. Also, this PR refactors the way context variables are added to a named parser to make it more easy to extend if needed.