A build-time serialization code generator for C. Kwil can write code to (de-)serialize C structs from and to json (and maybe other formats in the future).
 
 
Go to file
Sara 57836cee74 Update README.md 2024-02-18 16:40:25 +00:00
.helix added helix config 2023-09-16 17:25:58 +02:00
src implemented serialization 2023-09-16 17:27:03 +02:00
test_files implemented serialization 2023-09-16 17:27:03 +02:00
test_include wrote test 2023-09-11 18:44:37 +02:00
.gitignore created project files 2023-09-11 18:44:29 +02:00
.nvimrc switched build and test scripts to a makefile 2023-09-13 13:15:25 +02:00
LICENSE added license 2023-09-13 10:36:24 +02:00
Makefile implemented serialization 2023-09-16 17:27:03 +02:00
README.md Update README.md 2024-02-18 16:40:25 +00:00
compile_commands.json created project files 2023-09-11 18:44:29 +02:00

README.md

Kwil Header tool

An in-development command line tool for generating serialization code from C header files.

Kwil aims to be a non-intrusive drop-in (and if necessary drop-out) solution to automate the annoying task of writing deserialization and serialization code.

Currently aiming for json support, though adding (optional) support for other formats is strongly considered for implementing at a later time.

Features:

  • Generate *_json_length and *_to_jsonfunctions for structs and enums marked with KWIL_STRUCT() or KWIL_ENUM()

  • Generate *_from_json functions for structs.

  • Dynamic array length specifiers (e.g: KWIL_FIELD(LEN=13 or KWIL_FIELD(LEN=src->field_length)