caml-list - the Caml user's mailing list
 help / color / mirror / Atom feed
* Case-insensitive lexing
@ 2007-02-23 15:32 Joel Reymont
  2007-02-23 15:41 ` [Caml-list] " Denis Bueno
                   ` (4 more replies)
  0 siblings, 5 replies; 13+ messages in thread
From: Joel Reymont @ 2007-02-23 15:32 UTC (permalink / raw)
  To: caml-list

Folks,

Is there a way to make a case-insensitive lexer with ocamllex?

The only answer I was able to find is the following from John Skaller:

| identifier {
   let x = toupper (lexeme lexbuf) in
   try Hashtbl.find keywords x
   With Not_found -> x
}

	Thanks, Joel

--
http://wagerlabs.com/






^ permalink raw reply	[flat|nested] 13+ messages in thread

end of thread, other threads:[~2007-03-17 19:55 UTC | newest]

Thread overview: 13+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2007-02-23 15:32 Case-insensitive lexing Joel Reymont
2007-02-23 15:41 ` [Caml-list] " Denis Bueno
     [not found] ` <011EB42A-05E3-4686-BED7-2DB8B2663221@cs.uni-sb.de>
2007-02-23 16:02   ` Joel Reymont
2007-02-23 19:04     ` Martin Jambon
     [not found]     ` <42EFE4CF-F2F8-4AD2-9909-D0CF027A17AD@cs.uni-sb.de>
2007-02-23 21:03       ` Joel Reymont
2007-02-23 22:51         ` Erik de Castro Lopo
2007-02-23 23:00           ` Jon Harrop
2007-02-23 23:39             ` Tom
2007-02-24  0:32               ` Jon Harrop
2007-03-17 19:55                 ` Oliver Bandel
2007-02-23 20:21 ` Francois Rouaix
2007-02-24  2:25 ` skaller
2007-02-24  2:46 ` Jon Harrop

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).