package ppx_bitstring

  1. Overview
  2. Docs
Bitstrings and bitstring matching for OCaml - PPX extension

Install

Dune Dependency

Authors

Maintainers

Sources

v4.0.1.tar.gz
sha256=43656fef6f6aca2c5f016d5d778fece3299cbd7a51f3f049153e9385ce2bf6bf
md5=5b110311efbf7de600aaa34547ced3b4

Description

The ocaml-bitstring project adds Erlang-style bitstrings and matching over bitstrings as a syntax extension and library for OCaml. You can use this module to both parse and generate binary formats, files and protocols. Bitstring handling is added as primitives to the language, making it exceptionally simple to use and very powerful.

Published: 27 Oct 2020

README

OCaml Bitstring Library

Build Status"

Copyright (C) 2008-2016 Red Hat Inc, Richard W.M. Jones.
Copyright (C) 2016-2018 Red Hat Inc, Richard W.M. Jones, Xavier R. Guerin.

The original README content can be found in the README.orig file.

Documentation

The documentation is located here.

How to install

opam install bitstring
opam install ppx_bitstring

How to use

Ocamlfind

ocamlfind c -package bitstring -package ppx_bitstring -linkpkg ...

Dune

(executable
 ((name        foo)
  (libraries   (bitstring))
  (preprocess  (pps (ppx_bitstring)))
  ))

How to build

Dependencies

Required packages are detailed in the dune-project file.

Building the project

$ dune build

Running the tests

$ dune runtest

License

The library is licensed under the LGPL v2 or later, with the OCaml linking exception. See the file COPYING.LIB for full terms. Programs are licensed under the GPL v2 or later. See the file COPYING for full terms. All examples and tests are public domain.

Dependencies (4)

  1. ppxlib build & >= "0.15.0" & < "0.18.0"
  2. bitstring >= "4.0.0"
  3. ocaml >= "4.04.1"
  4. dune >= "2.5"

Dev Dependencies (2)

  1. ounit with-test
  2. ocaml with-test & >= "4.08.0"

Conflicts

None

OCaml

Innovation. Community. Security.