package bare_encoding
BARE encoding, see https://baremessages.org/
Install
Dune Dependency
Authors
Maintainers
Sources
v0.2.tar.gz
md5=b68abd81d504ca80f362cd5fb647e32c
sha512=b397b51b84fb154d4fb4722fcba0b8322036f6966ffb1f45b68c022d8bc41cd03f7f1eb8401fb68ba23da8afcd4e2a5910dc8f27ca0f3343c9e9796602f0e886
Description
README
Bare-OCaml
"
A simple code generator and runtime library for BARE following the spec.
- License: MIT.
- online documentation: https://c-cube.github.io/bare-ocaml/
Features
- runtime library named
Bare
, with entrypoints for encoding/decoding all the base types overBuffer.t
andbytes
respectively. code generator for producing OCaml code with type declarations and encoder/decoder functions.
the code generator can handle mutually recursive types and out-of-order declarations, by sorting them first. Each type gets its own toplevel module; for example
type foo int
will become:module Int = struct type t = int64 let decode = … let encode = … end
- pretty-printers can be generated using the
--pp
option - the generated code can be made dependency-free by using
--standalone
. In that case, the code for theBare
module will be inserted at the beginning of the generated code.
- basic testing (needs to be improved when test vectors are published)
- basic vim syntax files in
data/vim/
sectionYPositions = computeSectionYPositions($el), 10)"
x-init="setTimeout(() => sectionYPositions = computeSectionYPositions($el), 10)"
>
On This Page