Removed occurrences of camlp4sch, and fixed typos

git-svn-id: http://caml.inria.fr/svn/ocaml/trunk@6572 f963ae5c-01c2-4b8c-9fe0-0dff7051ff02
master
Michel Mauny 2004-08-02 08:05:29 +00:00
parent 54c1acdd15
commit f9e5216f36
1 changed files with 26 additions and 49 deletions

View File

@ -28,19 +28,10 @@ load-options
other-options other-options
] ]
.br .br
.B camlp4sch
[
load-options
] [--] [
other-options
]
.br
.B camlp4o.cma .B camlp4o.cma
.br .br
.B camlp4r.cma .B camlp4r.cma
.br .br
.B camlp4sch.cma
.br
.B mkcamlp4 .B mkcamlp4
.br .br
.B ocpp .B ocpp
@ -65,27 +56,23 @@ other-options
is a Pre-Processor-Pretty-Printer for OCaml, parsing a source is a Pre-Processor-Pretty-Printer for OCaml, parsing a source
file and printing some result on standard output. file and printing some result on standard output.
.LP .LP
.B camlp4o, .B camlp4o
.B camlp4r
and and
.B camlp4sch .B camlp4r
are versions of are versions of
.B camlp4 .B camlp4
with some files already loaded (see further). with some files already loaded (see below).
.LP .LP
.B camlp4o.cma, .B camlp4o.cma
.B camlp4r.cma
and and
.B camlp4sch.cma .B camlp4r.cma
are files to be loaded in ocaml toplevel to use the camlp4 machinery are files to be loaded in ocaml toplevel to use the camlp4 machinery.
.LP .LP
.B mkcamlp4 .B mkcamlp4
creates camlp4 executables with almost the same options than ocamlmktop. creates camlp4 executables with almost the same options as ocamlmktop (see below).
See further.
.LP .LP
.B ocpp .B ocpp
is an universal preprocessor, treating any kind of source file, is an universal preprocessor, expanding quotations in any kind of text file.
generating the same text with the possible quotations expanded.
.LP .LP
.B camlp4o.opt .B camlp4o.opt
and and
@ -97,11 +84,11 @@ in all installations of camlp4.
.SH LOAD OPTIONS .SH LOAD OPTIONS
The load options select parsing and printing actions recorded in OCaml The load options select parsing and printing actions recorded in OCaml
object files (ending with .cmo or .cma). Several usage of these options object files (ending with .cmo or .cma). They must precede other
are authorized. They must precede the other options. options.
.LP .LP
An optionnal An optional
.B \-\- .B \-\-
may end the load options. may end the load options.
@ -110,7 +97,7 @@ may end the load options.
Add Add
.I directory .I directory
in the search path for files loaded. Unless the option \-nolib is used, in the search path for files loaded. Unless the option \-nolib is used,
the camlp4 library directory is appended to the path. Warning: there is the camlp4 library directory is appended to the path. Note that there is
no automatic search in the current directory: add "\-I ." for this. no automatic search in the current directory: add "\-I ." for this.
.TP .TP
.B \-where .B \-where
@ -119,8 +106,10 @@ Print camlp4 library directory name and exit.
.B \-nolib .B \-nolib
No automatic search for objects files in camlp4 library directory. No automatic search for objects files in camlp4 library directory.
.TP .TP
.BI object-file .I object-file
The file is loaded in camlp4 core. Load
.I object-file
in the camlp4 core.
.SH OTHER OPTIONS .SH OTHER OPTIONS
@ -138,12 +127,12 @@ if it ends with .ml.
.BI \-intf\ file .BI \-intf\ file
Treat Treat
.I file .I file
as an interface file, whatever its extension. as an interface file, whatever its extension is.
.TP .TP
.BI \-impl\ file .BI \-impl\ file
Treat Treat
.I file .I file
as an implementation file, whatever its extension. as an implementation file, whatever its extension is.
.TP .TP
.B \-unsafe .B \-unsafe
Generate unsafe accesses to arrays and strings. Generate unsafe accesses to arrays and strings.
@ -160,14 +149,16 @@ Dump in
in case of syntax error in the result of a quotation expansion. in case of syntax error in the result of a quotation expansion.
.TP .TP
.BI \-o\ out-file .BI \-o\ out-file
Print the result on out-file instead of standard output. File is opened Print the result in
with open_out_bin (see OCaml library Pervasives). .I out-file
instead of standard output. File is opened
with open_out_bin (see the documentation of the Pervasives OCaml library).
.TP .TP
.B \-v .B \-v
Print the version number and exit. Print the version number and exit.
.TP .TP
.B \-help .B \-help
Print the available options and exit. This print includes the options Print the available options and exit. The output includes the options
possibly added by the loaded object files. possibly added by the loaded object files.
.LP .LP
@ -192,7 +183,7 @@ Added by pa_macro.cmo: define the ident.
Added by pa_macro.cmo: undefine the ident. Added by pa_macro.cmo: undefine the ident.
.SH "PROVIDED FILES" .SH "PROVIDED FILES"
These files are installed in the directory LIBDIR/camlp4. These files are installed in LIBDIR/camlp4.
.LP .LP
Parsing files: Parsing files:
@ -203,7 +194,6 @@ Parsing files:
pa_oop.cmo: streams and parsers (without code optimization) pa_oop.cmo: streams and parsers (without code optimization)
pa_r.cmo: revised syntax pa_r.cmo: revised syntax
pa_rp.cmo: streams and parsers pa_rp.cmo: streams and parsers
pa_scheme.cmo: scheme syntax
pa_extend.cmo: syntax extension for grammars pa_extend.cmo: syntax extension for grammars
pa_extfold.cmo: extension of pa_extend with FOLD0 and FOLD1 pa_extfold.cmo: extension of pa_extend with FOLD0 and FOLD1
pa_extfun.cmo: syntax extension for extensible functions pa_extfun.cmo: syntax extension for extensible functions
@ -220,8 +210,6 @@ Printing files:
pr_op.cmo: try to rebuild streams and parsers syntax pr_op.cmo: try to rebuild streams and parsers syntax
pr_r.cmo: revised syntax pr_r.cmo: revised syntax
pr_rp.cmo: try to rebuild streams and parsers syntax pr_rp.cmo: try to rebuild streams and parsers syntax
pr_scheme.cmo: scheme syntax
pr_schemep.cmo: try to rebuild streams and parsers syntax
pr_extend.cmo: try to rebuild EXTEND statements pr_extend.cmo: try to rebuild EXTEND statements
pr_extfun.cmo: try to rebuild extfun statements pr_extfun.cmo: try to rebuild extfun statements
pr_dump.cmo: syntax tree pr_dump.cmo: syntax tree
@ -252,14 +240,6 @@ is a shortcut for:
camlp4 pa_r.cmo pa_rp.cmo pr_dump.cmo camlp4 pa_r.cmo pa_rp.cmo pr_dump.cmo
.fi .fi
.LP .LP
The command
.B camlp4sch
is a shortcut for:
.nf
.ta 1c
camlp4 pa_scheme.cmo pr_dump.cmo
.fi
.LP
.LP .LP
The file The file
.B camlp4o.cma .B camlp4o.cma
@ -268,10 +248,6 @@ can be loaded in the toplevel to start camlp4 with OCaml syntax.
The file The file
.B camlp4r.cma .B camlp4r.cma
can be loaded in the toplevel to start camlp4 with revised syntax. can be loaded in the toplevel to start camlp4 with revised syntax.
.LP
The file
.B camlp4sch.cma
can be loaded in the toplevel to start camlp4 with Scheme syntax.
.SH "MKCAMLP4" .SH "MKCAMLP4"
@ -280,6 +256,7 @@ creates camlp4 executables with almost the same options than ocamlmktop.
The only difference is that the interfaces to be visible must be explicitly The only difference is that the interfaces to be visible must be explicitly
added in the command line as ".cmi" files. For example, how to add the added in the command line as ".cmi" files. For example, how to add the
the OCaml module "str": the OCaml module "str":
.nf .nf
.ta 1c 2c .ta 1c 2c
mkcamlp4 -custom str.cmi str.cma -cclib -lstr \\ mkcamlp4 -custom str.cmi str.cma -cclib -lstr \\
@ -287,7 +264,7 @@ the OCaml module "str":
.fi .fi
.SH "FILES" .SH "FILES"
Camlp4 library directory in the present installation: Camlp4 library directory in the current installation:
.br .br
LIBDIR/camlp4 LIBDIR/camlp4