Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Kaitai Struct for LCF #344

Open
0x4E69676874466F78 opened this issue Oct 9, 2019 · 2 comments
Open

Kaitai Struct for LCF #344

0x4E69676874466F78 opened this issue Oct 9, 2019 · 2 comments

Comments

@0x4E69676874466F78
Copy link

0x4E69676874466F78 commented Oct 9, 2019

Hi guys. Do you know about Kaitai Struct?
http://kaitai.io/
It can generate c++ code from declarative format ksy (YAML).
For example: http://formats.kaitai.io/
This can simplify maintenance and reduce errors.
It even has visualization: https://github.com/kaitai-io/kaitai_struct_webide
Compilation available in other languages (you can give the opportunity to work with formats in other languages).

@fdelapena
Copy link
Contributor

Hi NightFox, thanks for the suggestion. Yes, it is known. I did time ago a .ksy for the XYZ image format, which is pretty simple. It worked nicely from command line tools but the Kaitai Web IDE has a bug not allowing to display the structure on it.

About the LCF structure, it could be useful for visualization where liblcf is not suitable, but using SWIG is a possible alternative for users using other programming languages.

A suggestion for contributions (they are very welcome) is by providing a patch for the Python based liblcf code generator and create .ksy declarative code based on Jinja2 templates, like we do for C++ generation, so if we make changes in chunks in CSV files, updating C++ code and any other is simpler.

@KOLANICH
Copy link

KOLANICH commented Nov 3, 2019

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Development

No branches or pull requests

3 participants