summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--man/ocamllex.m26
1 files changed, 26 insertions, 0 deletions
diff --git a/man/ocamllex.m b/man/ocamllex.m
index 4101e89f3..3b1340d33 100644
--- a/man/ocamllex.m
+++ b/man/ocamllex.m
@@ -5,6 +5,12 @@ ocamllex \- The Objective Caml lexer generator
.SH SYNOPSIS
.B ocamllex
+[
+.BI \-o \ output-file
+]
+[
+.B \-ml
+]
.I filename.mll
.SH DESCRIPTION
@@ -38,6 +44,26 @@ When used in conjunction with a parser generated by
the semantic actions compute a value belonging to the type token defined
by the generated parsing module.
+.SH OPTIONS
+
+The
+.BR ocamllex (1)
+command recognizes the following options:
+
+.TP
+.BI \-o \ output-file
+Specify the output file name
+.IR output-file
+instead of the default naming convention.
+
+.TP
+.B \-ml
+Output code that does not use the Caml built-in automata
+interpreter. Instead, the automaton is encoded by Caml functions.
+This option is useful for debugging
+.BR ocamllex (1),
+using it for production lexers is not recommended.
+
.SH SEE ALSO
.BR ocamlyacc (1).
.br