parser icon indicating copy to clipboard operation
parser copied to clipboard

Where are the binary parsers from Spirit?

Open LegalizeAdulthood opened this issue 11 months ago • 2 comments

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.

LegalizeAdulthood avatar Feb 28 '24 19:02 LegalizeAdulthood

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.

tzlaine avatar Feb 28 '24 23:02 tzlaine

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.

LegalizeAdulthood avatar Mar 06 '24 18:03 LegalizeAdulthood