/bare-ocaml

codec and code-generator for https://baremessages.org/

Primary LanguageOCaml

Bare-OCaml build

A simple code generator and runtime library for BARE.

License: MIT.

Features

  • runtime library named Bare, with entrypoints for encoding/decoding all the base types over Buffer.t and bytes respectively

  • code generator for producing OCaml code with type declarations and encoder/decoder functions. (TODO: also generate pretty printers)

    • the code generator can handle mutually recursive types and out-of-order declarations, by sorting them first.
  • basic testing (needs to be improved when test vectors are published)

  • basic vim syntax files in data/vim/