1995-08-09 08:06:35 -07:00
|
|
|
(***********************************************************************)
|
|
|
|
(* *)
|
1996-04-30 07:53:58 -07:00
|
|
|
(* Objective Caml *)
|
1995-08-09 08:06:35 -07:00
|
|
|
(* *)
|
|
|
|
(* Xavier Leroy, projet Cristal, INRIA Rocquencourt *)
|
|
|
|
(* *)
|
1996-04-30 07:53:58 -07:00
|
|
|
(* Copyright 1996 Institut National de Recherche en Informatique et *)
|
1999-11-17 10:59:06 -08:00
|
|
|
(* en Automatique. All rights reserved. This file is distributed *)
|
|
|
|
(* under the terms of the Q Public License version 1.0. *)
|
1995-08-09 08:06:35 -07:00
|
|
|
(* *)
|
|
|
|
(***********************************************************************)
|
|
|
|
|
|
|
|
(* $Id$ *)
|
|
|
|
|
1995-05-04 03:15:53 -07:00
|
|
|
(* The lexical analyzer *)
|
|
|
|
|
|
|
|
val token: Lexing.lexbuf -> Parser.token
|
2001-10-09 07:55:58 -07:00
|
|
|
val skip_sharp_bang: Lexing.lexbuf -> unit
|
1995-05-04 03:15:53 -07:00
|
|
|
|
|
|
|
type error =
|
1999-12-30 09:09:37 -08:00
|
|
|
| Illegal_character of char
|
2001-11-08 04:59:37 -08:00
|
|
|
| Illegal_escape of string
|
1995-05-04 03:15:53 -07:00
|
|
|
| Unterminated_comment
|
|
|
|
| Unterminated_string
|
1999-10-15 11:34:04 -07:00
|
|
|
| Unterminated_string_in_comment
|
2000-04-11 20:43:25 -07:00
|
|
|
| Keyword_as_label of string
|
2003-11-21 08:01:13 -08:00
|
|
|
| Literal_overflow of string
|
1999-10-15 11:34:04 -07:00
|
|
|
;;
|
1995-05-04 03:15:53 -07:00
|
|
|
|
2002-11-01 09:06:47 -08:00
|
|
|
exception Error of error * Location.t
|
1995-05-04 03:15:53 -07:00
|
|
|
|
2000-03-06 14:12:09 -08:00
|
|
|
open Format
|
|
|
|
|
|
|
|
val report_error: formatter -> error -> unit
|
2001-02-14 02:47:23 -08:00
|
|
|
|
|
|
|
val in_comment : unit -> bool;;
|