It's a Work In Progress repo where I store my drafts on implementing kaitai-io/kaitai_struct#383 . For testing it needs some definitions in a working dir, you can get them on https://github.com/synalysis/Grammars/ .
The doc which may be useful for understanding grammars format is by the link:
- Clone this repo.
- Go to the working dir (this repo dir assummed).
./scripts/setup.sh
. This will clone the formats repo into a subdir and put differrent sorts of files into subdirs../scripts/test.sh
This will try to cmpile the remaining files into KS definitions. Then check the definitions and grammars manually and verify that they correspond to each other. Then add their file names without the last extension into the corresponding file in the lists directory.
not_ok
- it seems there is an error in the definition itself.OK
- compiled into aksy
without errorschecked_OK
- manual comparison of the.ksy
and the.grammar
files showed that it seems that they specify the same grammar (with respect to the tool limitations) AND ksy compiles into python AND python module is IMPORTED succesfully.checked_OK_after_fixes
- error in the definition was manually fixed, after that the same aschecked_OK
.tested_OK
- the resultingksy
was tested on actial files