Skip to content

Latest commit

 

History

History
40 lines (37 loc) · 839 Bytes

README.md

File metadata and controls

40 lines (37 loc) · 839 Bytes

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.