/[svn]/parser/location.mli
ViewVC logotype

Contents of /parser/location.mli

Parent Directory Parent Directory | Revision Log Revision Log


Revision 107 - (show annotations)
Tue Jul 10 17:06:47 2007 UTC (5 years, 10 months ago) by abate
File size: 710 byte(s)
[r2002-11-10 16:13:31 by cvscast] Empty log message

Original author: cvscast
Date: 2002-11-10 16:13:32+00:00
1 (* Locations in source file,
2 and presentation of results and errors *)
3
4 type loc = int * int
5 exception Location of loc * exn
6 exception Generic of string
7 val noloc:loc
8
9 val raise_generic: string -> 'a
10 val raise_loc_generic: loc -> string -> 'a
11
12 type source = [ `None | `File of string | `Stream | `String of string ]
13 val set_source: source -> unit
14
15 type viewport = [ `Html | `Text ]
16 val set_viewport: viewport -> unit
17
18 val protect: Format.formatter -> (Format.formatter -> unit) -> unit
19
20 val print_loc: Format.formatter -> loc -> unit
21 val dump_loc: Format.formatter -> loc -> unit
22 val html_hilight: Format.formatter -> loc -> unit
23
24 type 'a located = { loc : loc; descr : 'a }
25 val mk: loc -> 'a -> 'a located

CVS Admin">CVS Admin
ViewVC Help
Powered by ViewVC 1.1.5