kaitai_struct
kaitai_struct copied to clipboard
Updating ksy files from a visual representation?
The kaitai compiler creates a parser from the ksy grammar which allows to give a nice visual representation, e.g. the object tree in the kaitai ide. I would like to go the reverse way from a visual representation to a grammer. Imagine to add nodes to the object tree in the kaitai ide which then add the correct grammar inside the ksy yaml file. Would this be hard to implement? I imagine creating a full new grammer from a visual representation would be easy but doing small incremental updates to not overthrow an already existing grammer would be hard since there might be multiple ways to express the same representation with the grammar.
Any ideas?
.ksy ----> visual representation visual representation -----> .ksy