caml-list - the Caml user's mailing list
 help / color / mirror / Atom feed
* [Caml-list] ocamllex problem
@ 2005-08-04 23:12 Jonathan Roewen
  2005-08-04 23:53 ` Jonathan Roewen
  0 siblings, 1 reply; 10+ messages in thread
From: Jonathan Roewen @ 2005-08-04 23:12 UTC (permalink / raw)
  To: caml-list

Hi,

Here's my .mll file, to match IRC strings. The problem is that it's
including spaces, which I assume it shouldn't.

let letter = [^' ']

rule token = parse
        | ':'((letter|' ')* as s)       { STRING s }
        | letter+ as s                  { STRING s }
        | [' ']+                        { token lexbuf }
        | eof                           { EOL }

(BTW, this is for matching rule 2). Maybe I'm just retarded, but this
should work, correct?

Jonathan


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

end of thread, other threads:[~2005-08-05 12:39 UTC | newest]

Thread overview: 10+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2005-08-04 23:12 [Caml-list] ocamllex problem Jonathan Roewen
2005-08-04 23:53 ` Jonathan Roewen
2005-08-05  1:03   ` skaller
2005-08-05  5:11     ` Alain Frisch
2005-08-05  6:15     ` james woodyatt
2005-08-05  8:35       ` skaller
2005-08-05  9:15       ` Berke Durak
2005-08-05 11:05         ` skaller
2005-08-05 12:21           ` Jonathan Bryant
2005-08-05 12:39             ` David MENTRE

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).