package bitstring

  1. Overview
  2. Docs
bitstrings and bitstring matching for OCaml

Install

Dune Dependency

Authors

Maintainers

Sources

bitstring.3.1.0.tar.gz
sha256=fa6248c6c022cff30ef8e5f0323a2906f8d2cd534527425f08a3ef80af985296
md5=22807a9517ede34823ebdb36d6bacef8

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: 09 Sep 2018

README

README.orig

ocaml-bitstring Copyright (C) 2008-2012 Red Hat Inc, Richard W.M. Jones.

This library was formerly known as 'bitmatch'.

Please see the html subdirectory for developer documentation.

The only requirements are OCaml >= 4.02.0, camlp4, ocamldoc, and findlib.

If you optionally have CIL (http://cil.sourceforge.net/) installed
then there are some nice extra tools for converting C header files
into matchable OCaml structures.

To build:

	./configure
	make

Other make targets:

	make check		# build and run the test suite

	make examples		# build the examples

	make print-tests	# print expanded test macros
	make print-examples	# print expanded example macros

To install (as root):

	make install

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. ocaml-migrate-parsetree >= "1.0.5" & < "2.0.0"
  2. ppx_tools_versioned build
  3. jbuilder >= "1.0+beta7"
  4. ocaml >= "4.02.3"

Dev Dependencies (1)

  1. ounit with-test

Conflicts (1)

  1. ppx_bitstring
OCaml

Innovation. Community. Security.