]> rtime.felk.cvut.cz Git - l4.git/blob - l4/pkg/ocaml/ocaml/contrib/parsing/lexer.mli
Update
[l4.git] / l4 / pkg / ocaml / ocaml / contrib / parsing / lexer.mli
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 (***********************************************************************)
12
13 (* $Id: lexer.mli 5961 2003-11-21 16:01:13Z xleroy $ *)
14
15 (* The lexical analyzer *)
16
17 val token: Lexing.lexbuf -> Parser.token
18 val skip_sharp_bang: Lexing.lexbuf -> unit
19
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
28 ;;
29
30 exception Error of error * Location.t
31
32 open Format
33
34 val report_error: formatter -> error -> unit
35
36 val in_comment : unit -> bool;;