Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Embed ocamllex definitions in OCaml sources with cppo
branch: master

Fetching latest commit…

Cannot retrieve the latest commit at this time

Failed to load latest commit information.
.gitignore
LICENSE
Makefile
README.md
example.mlx
ocamllex-cppo

README.md

ocamllex-cppo

ocamllex-cppo makes it possible to embed ocamllex definitions in an OCaml file preprocessed with cppo.

Here are the commands to compile a source file example.mlx:

cppo -x ocamllex:ocamllex-cppo example.mlx -o example.ml
ocamlopt -o example example.ml

Installation

make install

or

make PREFIX=/usr/local install   # defaults to $HOME

For a demo, do:

make demo
Something went wrong with that request. Please try again.