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
|
|
|
(* Source code locations, used in parsetree *)
|
2000-03-06 14:12:09 -08:00
|
|
|
open Format
|
1995-05-04 03:15:53 -07:00
|
|
|
|
|
|
|
type t =
|
1999-09-08 10:42:36 -07:00
|
|
|
{ loc_start: int; loc_end: int; loc_ghost: bool }
|
1995-05-04 03:15:53 -07:00
|
|
|
|
|
|
|
val none: t
|
1999-09-08 10:42:36 -07:00
|
|
|
val symbol_rloc: unit -> t
|
|
|
|
val symbol_gloc: unit -> t
|
1995-05-04 03:15:53 -07:00
|
|
|
val rhs_loc: int -> t
|
|
|
|
|
|
|
|
val input_name: string ref
|
|
|
|
val input_lexbuf: Lexing.lexbuf option ref
|
|
|
|
|
2000-03-06 14:12:09 -08:00
|
|
|
val print: formatter -> t -> unit
|
|
|
|
val print_warning: t -> formatter -> Warnings.t -> unit
|
|
|
|
val prerr_warning: t -> Warnings.t -> unit
|
1997-04-15 12:18:41 -07:00
|
|
|
val echo_eof: unit -> unit
|
1995-09-08 01:55:59 -07:00
|
|
|
val reset: unit -> unit
|
1997-11-12 04:32:53 -08:00
|
|
|
|
|
|
|
val highlight_locations: t -> t -> bool
|