awesome-kaitai
awesome-kaitai copied to clipboard
Added binaryparse (by PMunch) and changed description/status of my projects
An update after my journey of parsing binaries in Nim:
I found out Kaitai Struct semantics don't map very well to Nim because nesting implies OO, which is not idiomatic in Nim. Therefore nimitai is a bad idea. Nevertheless the official Nim backend (in KS compiler) should advance; I plan to work on it in the near future. Trying to find a better way for Nim, I stumbled upon binaryparse which is awesome! It is pretty similar to Python's construct, but with a key difference: It only allows for composition/embedding and not nesting of parsers (construct discourages and has deprecated embedding). Also it allows you to compose generated parsers with hand-written ones in a very simple way. It is minimalistic so you have to use separate code for many common features (like conditionals), but this suitable for Nim since you can just write other macros for them (one can think of them as plug-ins).
Changes:
- Marked
nimitaias stalled - Added
binaryparse - Toned down ambitions for
hexalepis
Also since then:
- I launched a fork of
binaryparsecalledbinarylang, so I added both to the list (in one entry) - I made a repo which is a collection of parsers written in
binarylangformat (n4n6), so I want to add this too to "Formats" section