.TH CAMLP4 "1" "June 2007" "CamlP4 3.10.0" "User Commands" .SH NAME CamlP4 \- Pre-Processor-Pretty-Printer for Objective Caml .SH SYNOPSIS .B camlp4 [\fIload\-options\fR] [\fI\-\-\fR] [\fIother\-options\fR] .SH DESCRIPTION Camlp4 is a Pre-Processor-Pretty-Printer for Objective Caml. It offers tools for syntax (Stream Parsers and Grammars) and the ability to modify the concrete syntax of the language (Quotations, Syntax Extensions). The Objective Caml compiler has a special option "\-pp", allowing to call any preprocessor. If Camlp4 is used, the parsing is done (only once) by Camlp4, and the Objective Caml compiler resumes the rest of the compilation (typing, code generation). Camlp4 can parse normal OCaml concrete syntax or any other user-definable syntax. As an example, an alternative syntax is provided, named Revised, because it tries to fix some problems of the original syntax. Camlp4 can pretty print the normal OCaml concrete syntax or the revised one (Pretty-Printer). It is therefore always possible to have a version of your sources compilable by the compiler Objective Caml without preprocessing. Camlp4 can also serve as a Program Transformation tool, the user can supply transformations and apply them easily as a pre-processing task. This is done with Filters. .SH OPTIONS .TP \fB.ml\fR Parse this implementation file .TP \fB.mli\fR Parse this interface file .TP \fB.(cmo|cma)\fR Load this module inside the Camlp4 core .TP \fB\-I\fR Add directory in search patch for object files. .TP \fB\-where\fR Print camlp4 library directory and exit. .TP \fB\-nolib\fR No automatic search for object files in library directory. .TP \fB\-intf\fR Parse as an interface, whatever its extension. .TP \fB\-impl\fR Parse as an implementation, whatever its extension. .TP \fB\-str\fR Parse as an implementation. .TP \fB\-unsafe\fR Generate unsafe accesses to array and strings. .TP \fB\-noassert\fR Obsolete, do not use this option. .TP \fB\-verbose\fR More verbose in parsing errors. .TP \fB\-loc\fR Name of the location variable (default: _loc). .TP \fB\-QD\fR Dump quotation expander result in case of syntax error. .TP \fB\-o\fR Output on instead of standard output. .TP \fB\-v\fR Print Camlp4 version and exit. .TP \fB\-version\fR Print Camlp4 version number and exit. .TP \fB\-no_quot\fR Don't parse quotations, allowing to use, e.g. "<:>" as token. .TP \fB\-loaded\-modules\fR Print the list of loaded modules. .TP \fB\-parser\fR Load the parser Camlp4Parsers/.cmo .TP \fB\-printer\fR Load the printer Camlp4Printers/.cmo .TP \fB\-filter\fR Load the filter Camlp4Filters/.cmo .TP \fB\-ignore\fR ignore the next argument .TP \fB\-\-\fR Deprecated, does nothing .PP Options added by loaded object files: .TP \fB\-I\fR Add a directory to INCLUDE search path. .TP \fB\-U\fR Undefine for IFDEF instruction. .TP \fB\-D\fR Define for IFDEF instruction. .TP \fB\-meta_action\fR Undocumented .TP \fB\-split_gext\fR Old name for the option \fB\-split_ext\fR. .TP \fB\-split_ext\fR Split EXTEND by functions to turn around a PowerPC problem. .TP \fB\-help_seq\fR Print explanations about new sequences and exit. .SH "SEE ALSO" .BR ocamlc(1), .BR ocaml(1). .br The full documentation for .B CamlP4 is being developed on a Wiki available on the web at .br .B . .SH AUTHOR CamlP4 is Copyright INRIA, it was mainly written by Nicolas Pouillard. .PP This manual page was written by Stefano Zacchiroli , for the Debian project (but may be used by others).