File: ocamlmod.mkd

package info (click to toggle)
ocamlmod 0.0.9-5
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid, trixie
  • size: 852 kB
  • sloc: ml: 6,812; makefile: 84
file content (28 lines) | stat: -rw-r--r-- 670 bytes parent folder | download | duplicates (6)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
% OCAMLMOD(1) ocamlmod manpage
% Sylvain Le Gall 
% April 20, 2012

# NAME

ocamlmod - generate OCaml modules from source files

# SYNOPSIS

ocamlmod [-help|--help] file.mod

# DESCRIPTION

This program allows one to generate a single module files from a bunch of OCaml
source file.

# FILE SYNTAX

The `file.mod` must contains one source (`.ml`) per line.

Each `.ml` file is copied with an indentation of 2 space into `file.ml`
The target filename is derived from the `.mod` filename.

During the copy, some parts are removed:

* Every lines contains inside a `(* END EXPORT *)`, `(* START EXPORT *)`
* Some camlp4 related directive (`with odn` and `TYPE_CONV_PATH`).