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 1e10d9f7d2 Merge pull request 'Add README' (#1) from readme into main
Reviewed-on: #1
2023-09-27 13:01:38 +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' 2023-09-14 09:19:40 +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:

[x] 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)