Comment on Interval Parsing Grammars for File Format Parsing (2023) [pdf]Comments−khaledh2yBinaryLang (for Nim) has similar features[1]. I've written a very compact ELF parser with it[2]. Notice that the last struct has array elements that skip over content based on offsets specified in the header.[1] https://github.com/sealmove/binarylang[2] https://github.com/khaledh/elfdump/blob/master/elfparse.nim
Comments
BinaryLang (for Nim) has similar features[1]. I've written a very compact ELF parser with it[2]. Notice that the last struct has array elements that skip over content based on offsets specified in the header.
[1] https://github.com/sealmove/binarylang
[2] https://github.com/khaledh/elfdump/blob/master/elfparse.nim