Given a simple description about a data structure, geneet will generate the C source code so it can be serialized/deserialized by using the EET library.
Even though it is possible to write code to use EET by hand, it can be pretty boring and error-prone. Geneet's structure syntax is as simple as it gets and, in the future, will be possible to use it for other languages as well.
Geneet supports currently:
Generated code can:
%Structure_Name {
%field_name : %type [%arguments];
}
| Type | Optional | Argument |
|---|---|---|
| str | Yes | default "Default value" |
| list | No | of %Structure_Name |
| hash | No | of %Structure_Name by %field_name |
| enum | No | of %name1, %name2, ..., %nameN |
$ geneet phonebook.geneetWill create phonebook.c and phonebook.h.
git://git.profusion.mobi/users/leandro/geneet.git