File: token.ml

package info (click to toggle)
camlp4 2.04-3
  • links: PTS
  • area: main
  • in suites: potato
  • size: 1,576 kB
  • ctags: 3,108
  • sloc: ml: 26,444; makefile: 736; sh: 203
file content (28 lines) | stat: -rw-r--r-- 1,159 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
(* camlp4r *)
(***********************************************************************)
(*                                                                     *)
(*                             Camlp4                                  *)
(*                                                                     *)
(*        Daniel de Rauglaudre, projet Cristal, INRIA Rocquencourt     *)
(*                                                                     *)
(*  Copyright 1998 Institut National de Recherche en Informatique et   *)
(*  Automatique.  Distributed only by permission.                      *)
(*                                                                     *)
(***********************************************************************)

(* $Id: token.ml,v 2.1 1998/12/04 18:29:12 ddr Exp $ *)

type t = (string * string);
type pattern = (string * string);

exception Error of string;

type location_function = int -> (int * int);

type lexer =
 { func : Stream.t char -> (Stream.t t * location_function);
   using : pattern -> unit;
   removing : pattern -> unit;
   tparse : pattern -> Stream.t t -> string;
   text : pattern -> string }
;