Skip to content

nanomq/idl-serial

Repository files navigation

idl-serial

Based IDL generate serial code:

  • json to struct
  • struct to json

Overview

This project is a IDL serial generator for c. We use flex && bison to scan and parse files and generate json to struct and struct to json code.

Features

  • Primitive types
  • Structs
  • String and string with template
  • Sequence template
  • Enums.
  • Part of Annotations
  • Unions
  • Enums
  • Bitmasks
  • Typedefs
  • Modules
  • Bitsets
  • Constants

Building

  • Get the from github
git clone https://github.com/nanomq/idl-serial.git
  • Build project
cd idl-serial && mkdir build
cd build && cmake ..
make

Usage

  • Generate code
./idl-serial-code-gen ../test.idl

Code will generate to idl_convert.c.

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published