aboutsummaryrefslogtreecommitdiff
path: root/gramlib/plexing.mli
diff options
context:
space:
mode:
Diffstat (limited to 'gramlib/plexing.mli')
-rw-r--r--gramlib/plexing.mli6
1 files changed, 2 insertions, 4 deletions
diff --git a/gramlib/plexing.mli b/gramlib/plexing.mli
index 0c190af635..84bdc53f0b 100644
--- a/gramlib/plexing.mli
+++ b/gramlib/plexing.mli
@@ -10,10 +10,8 @@
(** Lexer type *)
-type 'te lexer_func = ?loc:Loc.t -> char Stream.t -> 'te Stream.t * location_function
-and location_function = int -> Loc.t
- (** The type of a function giving the location of a token in the
- source from the token number in the stream (starting from zero). *)
+(** Returning a stream equipped with a location function *)
+type 'te lexer_func = ?source:Loc.source -> char Stream.t -> 'te LStream.t
module type S = sig
type te