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

Contents of /parser/location.ml

Parent Directory Parent Directory | Revision Log Revision Log


Revision 4 - (show annotations)
Tue Jul 10 16:56:57 2007 UTC (5 years, 10 months ago) by abate
File size: 244 byte(s)
[r2002-10-10 15:02:36 by cvscast] Empty log message

Original author: cvscast
Date: 2002-10-10 15:02:36+00:00
1 type loc = int * int
2 exception Location of loc * exn
3
4 let noloc = (-1,-1)
5
6 type 'a located = { loc : loc; descr : 'a }
7
8 type expr = A | B of expr located
9
10 let rec recurs f x = f (recurs f) x.loc x.descr
11
12 let mk loc x = { loc = loc; descr = x }

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