Module of module types for OrderedType,ComparableType,Printable,Serializable,Discrete...
[ocaml.git] / parsing / lexer.mli
blob3ddb5dde7ca59d1bf6b783d3c9ddccb3869e273a
1 (***********************************************************************)
2 (* *)
3 (* Objective Caml *)
4 (* *)
5 (* Xavier Leroy, projet Cristal, INRIA Rocquencourt *)
6 (* *)
7 (* Copyright 1996 Institut National de Recherche en Informatique et *)
8 (* en Automatique. All rights reserved. This file is distributed *)
9 (* under the terms of the Q Public License version 1.0. *)
10 (* *)
11 (***********************************************************************)
13 (* $Id$ *)
15 (* The lexical analyzer *)
17 val token: Lexing.lexbuf -> Parser.token
18 val skip_sharp_bang: Lexing.lexbuf -> unit
20 type error =
21 | Illegal_character of char
22 | Illegal_escape of string
23 | Unterminated_comment
24 | Unterminated_string
25 | Unterminated_string_in_comment
26 | Keyword_as_label of string
27 | Literal_overflow of string
30 exception Error of error * Location.t
32 open Format
34 val report_error: formatter -> error -> unit
36 val in_comment : unit -> bool;;