kaitai_struct icon indicating copy to clipboard operation
kaitai_struct copied to clipboard

Updating ksy files from a visual representation?

Open Fee0 opened this issue 3 years ago • 0 comments

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

Fee0 avatar Feb 04 '22 00:02 Fee0