package ppx_bitstring

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

Install

Dune Dependency

Authors

Maintainers

Sources

v4.0.0.tar.gz
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

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. ppxlib build & >= "0.16.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"

Used by (5)

  1. bap-elf >= "2.5.0"
  2. bitcoinml < "0.4.1"
  3. mlpost >= "0.9"
  4. netml
  5. shapefile

Conflicts

None

OCaml

Innovation. Community. Security.