4 ocamllex \- The Objective Caml lexer generator
20 command generates Objective Caml lexers from a set of regular
21 expressions with associated semantic actions, in the style of
28 produces Caml code for a lexical analyzer in file
31 This file defines one lexing function per entry point in the lexer
32 definition. These functions have the same names as the entry
33 points. Lexing functions take as argument a lexer buffer, and return
34 the semantic attribute of the corresponding entry point.
36 Lexer buffers are an abstract data type implemented in the standard
37 library module Lexing. The functions Lexing.from_channel,
38 Lexing.from_string and Lexing.from_function create
39 lexer buffers that read from an input channel, a character string, or
40 any reading function, respectively.
42 When used in conjunction with a parser generated by
44 the semantic actions compute a value belonging to the type token defined
45 by the generated parsing module.
51 command recognizes the following options:
55 Specify the output file name
57 instead of the default naming convention.
61 Output code that does not use the Caml built-in automata
62 interpreter. Instead, the automaton is encoded by Caml functions.
63 This option is useful for debugging
65 using it for production lexers is not recommended.
70 .I The Objective Caml user's manual,
71 chapter "Lexer and parser generators".