tzlaine / parser

A C++ parser combinator library.
Boost Software License 1.0
69 stars 12 forks source link

Where are the binary parsers from Spirit? #143

Open LegalizeAdulthood opened 4 months ago

LegalizeAdulthood commented 4 months ago

Spirit V2 had parsers for binary values. When parsing binary file formats, e.g. PNG image file format, numeric values are present as binary encodings using a particular byte order. IMO, this was one of the things that set Spirit apart from other parsing frameworks.

tzlaine commented 4 months ago

I never used this, and aside from Michael Caisse I never met anyone that did. It seemed like little bang for a lot of buck. I'll leave this open, and I may do it one day, but it's a pretty low priority.

LegalizeAdulthood commented 3 months ago

As I say, it's useful for parsing binary file formats. It's a bit of a chicken-and-egg situation -- parser frameworks don't typcially provide facilities for doing it, so the people parsing binary file formats don't use parser frameworks and they don't show up in reviews of parser frameworks :). I'd be content with an outline of an example of how to roll my own.