3 ms·
How does it handle length-prefixed data? length u32 data u32[length] This is a huge problem for traditional parsers since the input modifies the grammar
by matheusmoreira 5y ago
How does it handle length-prefixed data?
length u32
data u32[length]
This is a huge problem for traditional parsers since the input modifies the grammar dynamically.
- boardwaalk 5y agoIt’s right here: https://metacpan.org/pod/Data::ParseBinary#Meta-Primitives https://metacpan.org/pod/Data::ParseBinary#Meta-Primitives
- matheusmoreira 5y agoI see, you can pass in a function that computes the length. I wonder if a declarative or formal solution will ever exist.