Re:Kaitai Struct: A new way to develop parsers for binary st...
by matheusmoreira on Thursday March 17, 2022 @08:35PM
(#30717407)
How does it handle length-prefixed data?
This is a huge problem for traditional parsers since the input modifies the grammar dynamically.
[ Parent
| on HN ]
Re:Kaitai Struct: A new way to develop parsers for binary st...
by boardwaalk on Thursday March 17, 2022 @08:45PM
(#30717466)
Itβs right here: https://metacpan.org/pod/Data::ParseBinary#Meta-Primitives
Re:Kaitai Struct: A new way to develop parsers for binary st...
by matheusmoreira on Thursday March 17, 2022 @08:55PM
(#30717533)
I see, you can pass in a function that computes the length. I wonder if a declarative or formal solution will ever exist.