table of contents
other versions
- wheezy 3.12.1-4
- jessie 4.01.0-5
- testing 4.02.3-9
- unstable 4.02.3-9
- experimental 4.04.0-2
OCAMLLEX(1) | General Commands Manual | OCAMLLEX(1) |
NAME¶
ocamllex - The Objective Caml lexer generatorSYNOPSIS¶
ocamllex [ -o output-file ] [ -ml ] filename.mllDESCRIPTION¶
The ocamllex(1) command generates Objective Caml lexers from a set of regular expressions with associated semantic actions, in the style of lex(1).OPTIONS¶
The ocamllex(1) command recognizes the following options:- -ml
- Output code that does not use OCaml's built-in automata interpreter. Instead, the automaton is encoded by Caml functions. This option is mainly useful for debugging ocamllex(1), using it for production lexers is not recommended.
- -o output-file
- Specify the name of the output file produced by ocamllex(1). The default is the input file name, with its extension replaced by .ml.
- -q
- Quiet mode. ocamllex(1) normally outputs informational messages to standard output. They are suppressed if option -q is used.
- -v or -version
- Print version string and exit.
- -vnum
- Print short version number and exit.
- -help or --help
- Display a short usage summary and exit.