Project

General

Profile

Statistics
| Branch: | Revision:

cool / src / lib / altGenlex.mli @ de84f40d

History | View | Annotate | Download (416 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