Module Token


module Token: sig .. end
Module deprecated since Camlp5 version 5.00. Use now module Plexing. Compatibility assumed.

type pattern = Plexing.pattern 
exception Error of string
Use now Plexing.Error
type 'a glexer = 'a Plexing.lexer = {
   tok_func : 'a Plexing.lexer_func;
   tok_using : pattern -> unit;
   tok_removing : pattern -> unit;
   mutable tok_match : pattern -> 'a -> string;
   tok_text : pattern -> string;
   mutable tok_comm : Ploc.t list option;
}
type 'a lexer_func = char Stream.t -> 'a Stream.t * location_function 
type location_function = int -> Ploc.t 
val lexer_text : pattern -> string
Use now Plexing.lexer_text
val default_match : pattern -> string * string -> string
Use now Plexing.default_match
val lexer_func_of_parser : (char Stream.t * int Pervasives.ref * int Pervasives.ref -> 'a * Ploc.t) ->
'a lexer_func
Use now Plexing.lexer_func_of_parser
val lexer_func_of_ocamllex : (Lexing.lexbuf -> 'a) -> 'a lexer_func
Use now Plexing.lexer_func_of_ocamllex
val make_stream_and_location : (unit -> 'a * Ploc.t) -> 'a Stream.t * location_function
Use now Plexing.make_stream_and_location
val eval_char : string -> char
Use now Plexing.eval_char
val eval_string : Ploc.t -> string -> string
Use now Plexing.eval_string
val restore_lexing_info : (int * int) option Pervasives.ref
Use now Plexing.restore_lexing_info
val line_nb : int Pervasives.ref Pervasives.ref
Use now Plexing.line_nb
val bol_pos : int Pervasives.ref Pervasives.ref
Use now Plexing.bol_pos
type location = Ploc.t 
val make_loc : int * int -> Ploc.t
val dummy_loc : Ploc.t