I'm looking for a library equivalent Python's "construct", maybe somebody has ported it.
Construct is a powerful declarative parser for binary data.
It is based on the concept of defining data structures in a declarative manner, rather than procedural code: Simple constructs can be combined hierarchically to form increasingly complex data structures. It's the first library that makes parsing fun, instead of the usual headache it is today.
This is similar question for java. Java equivalent of Python's "construct" library
Thanks.