aboutsummaryrefslogtreecommitdiff
path: root/gramlib/plexing.ml
diff options
context:
space:
mode:
authorEmilio Jesus Gallego Arias2018-11-24 21:41:22 +0100
committerEmilio Jesus Gallego Arias2018-11-30 22:35:05 +0100
commit0422f7e67c6c87ab364212a267288afcc7313e90 (patch)
tree05ec0a2e801eeee6adce6655af8475395bb9a575 /gramlib/plexing.ml
parentacd0c18829a03159c489d908ce8f5f510de2f347 (diff)
[gramlib] Remove `Ploc.t` in favor of `Loc.t`
The types are identical and we have no more reason for the split. Note the following TODOS: - discrepancy of `Ploc.after` with `CLexer.after` - discrepancy of `Ploc.comments` with `CLexer.comments` - `Ploc.dummy` vs `Loc.t option`
Diffstat (limited to 'gramlib/plexing.ml')
-rw-r--r--gramlib/plexing.ml5
1 files changed, 2 insertions, 3 deletions
diff --git a/gramlib/plexing.ml b/gramlib/plexing.ml
index 986363ec1f..7b8618fd20 100644
--- a/gramlib/plexing.ml
+++ b/gramlib/plexing.ml
@@ -6,8 +6,7 @@ type pattern = string * string
exception Error of string
-type location = Ploc.t
-type location_function = int -> location
+type location_function = int -> Loc.t
type 'te lexer_func = char Stream.t -> 'te Stream.t * location_function
type 'te lexer =
@@ -16,4 +15,4 @@ type 'te lexer =
tok_removing : pattern -> unit;
mutable tok_match : pattern -> 'te -> string;
tok_text : pattern -> string;
- mutable tok_comm : location list option }
+ mutable tok_comm : Loc.t list option }