Project

General

Profile

Statistics
| Branch: | Revision:

cool / src / lib / altGenlex.mli @ 1d36cd07

History | View | Annotate | Download (453 Bytes)

1
type altToken =
2
  | Kwd of string
3
  | Ident of string
4
  | Int of int
5

    
6
val make_lexer : string list -> string -> altToken Stream.t
7
val make_lexer_file : ?comment:string -> string list -> in_channel -> altToken Stream.t
8

    
9
val printToken : altToken -> unit
10
val printError : (string -> exn) -> ?t:altToken -> ?ts:altToken Stream.t -> string -> 'a
11

    
12
val getKws : (string -> exn) -> altToken Stream.t -> string list -> unit
13

    
14
(* vim: set et sw=2 sts=2 ts=8 : *)