Add copyright notices and new function String.chomp
[ocaml.git] / parsing / syntaxerr.mli
blobdba7f290221faf205f1fe7d3053207cbda1b39bc
1 (***********************************************************************)
2 (* *)
3 (* Objective Caml *)
4 (* *)
5 (* Xavier Leroy, projet Cristal, INRIA Rocquencourt *)
6 (* *)
7 (* Copyright 1997 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 (* Auxiliary type for reporting syntax errors *)
17 open Format
19 type error =
20 Unclosed of Location.t * string * Location.t * string
21 | Other of Location.t
23 exception Error of error
24 exception Escape_error
26 val report_error: formatter -> error -> unit