1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18
(* camlp5r *) (* plexing.ml,v *) (* Copyright (c) INRIA 2007-2017 *) type location_function = int -> Loc.t type 'te lexer_func = ?loc:Loc.t -> char Stream.t -> 'te Stream.t * location_function module type Lexer = sig type te type 'c pattern val tok_pattern_eq : 'a pattern -> 'b pattern -> ('a, 'b) Util.eq option val tok_pattern_strings : 'c pattern -> string * string option val tok_func : te lexer_func val tok_using : 'c pattern -> unit val tok_removing : 'c pattern -> unit val tok_match : 'c pattern -> te -> 'c val tok_text : 'c pattern -> string end