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 0f0afb72a1 Added README 2023-09-13 15:08:26 +00:00
src added default returns to generated enum functions 2023-09-13 12:46:01 +02:00
test_files adadded tests for enum serialization to test files 2023-09-13 12:46:12 +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 switched build and test scripts to a makefile 2023-09-13 13:15:25 +02:00
README.md Added README 2023-09-13 15:08:26 +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.

Features: [x] Generate *_json_length and *_to_jsonfunctions for structs and enums marked with KWIL_STRUCT() or KWIL_ENUM() [ ] Generate *_from_json functins for structs. [ ] Dynamic array length specifiers (e.g: KWIL_FIELD(LEN=13 or KWIL_FIELD(LEN=<field_name>)

Example

#include "kwil.h" // kwil.h header contains empty KWIL_STRUCT() KWIL_ENUM() and KWIL_FIELD() macros