[
Home
]
[ Index:
by date
|
by threads
]
[ Message by date: previous | next ] [ Message in thread: previous | next ] [ Thread: previous | next ]
[ Message by date: previous | next ] [ Message in thread: previous | next ] [ Thread: previous | next ]
| Date: | -- (:) |
| From: | skaller <skaller@u...> |
| Subject: | Re: [Caml-list] Case-insensitive lexer |
On Mon, 2004-12-27 at 09:21, Christophe TROESTLER wrote:
> Hi,
>
> Is there a way to build a case-insensitive lexer with ocamllex (flex
> has the "-i" option for that)?
| identifier {
let x = toupper (lexeme lexbuf) in
try Hashtbl.find keywords x
With Not_found -> x
}
--
John Skaller, mailto:skaller@users.sf.net
voice: 061-2-9660-0850,
snail: PO BOX 401 Glebe NSW 2037 Australia
Checkout the Felix programming language http://felix.sf.net