kaitai-io / kaitai_struct_formats

Kaitai Struct: library of binary file formats (.ksy)
http://formats.kaitai.io
712 stars 203 forks source link

add grammar for preferred executable format (pef) as used on classic MacOS #598

Open armijnhemel opened 2 years ago

armijnhemel commented 2 years ago

This PR adds a grammar for the PEF format, as used on classic MacOS. I have only tested with one file, which was for either MacOS 8 or System 7.5. Some parts of the specification (like the exported symbols) have not been implemented, as I don't have a test file that actually has exported symbols. This is something that remains TODO.

It should be noted that this is an old format that is no longer in serious use.