We have a NEW home page:
http://code.google.com/p/bitmatch/
Bitmatch adds Erlang-style bitstring matching and construction syntax
to OCaml. It makes parsing binary files, formats and protocols
exceptionally simple. It has numerous features including 1-64 bit
integers, strings, efficient subsets of bitstrings, big- and little-
endianness, signed and unsigned types, variable-width fields, and
fields with arbitrary bit-level alignment.
You might also want to check out our tool virt-df which uses bitmatch
to parse a wide variety of disk formats:
http://et.redhat.com/~rjones/virt-df/
The source code for the diskimage library is a good place to see
bitmatch in real world usage:
Bitmatch is available under the GNU LGPL version 2 or later with the
usual OCaml linking exception.
Rich.
--
Richard Jones
Red Hat
_______________________________________________
Caml-list mailing list. Subscription management:
http://yquem.inria.fr/cgi-bin/mailman/listinfo/caml-list
Archives: http://caml.inria.fr
Beginner's list: http://groups.yahoo.com/group/ocaml_beginners
Bug reports: http://caml.inria.fr/bin/caml-bugs