Can I create a grammar for a compressed file type?

0 votes
asked May 31 in Synalyze It! by jgusta (120 points)
Is there a way to analyze a compressed file type? For example, I've encountered a file type that has a custom header then an embedded zlib-compressed file. That file decompresses into another format that I can make a grammar for easily But I have to split the file into two parts outside of Synalyze It!  and decompress the second part before loading.

Scripting is pretty powerful and I can slice and decompress the data just fine in the program's python host, but once it's there, I can't use grammar features on the result. I guess I'm asking if there is a way to re-insert or alter data from scripting that is then can then be matched with a grammar? I maybe

Please log in or register to answer this question.

...