package bitstring
Install
Dune Dependency
Authors
Maintainers
Sources
sha256=f530b2c8c3eb413d4d7c9b75d8da418bb4dde51c2f7b2b83d268d2967dac4860
md5=d6ab5fd776c08495eb738d70c8b555e6
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: 23 Sep 2020
README
OCaml Bistring Library
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 (3)
-
stdlib-shims
>= "0.1.0"
-
ocaml
>= "4.04.1"
-
dune
>= "2.5"
Dev Dependencies
None
Used by (4)
Conflicts
None