Version française
Home     About     Download     Resources     Contact us    
Browse thread
index of substring
[ Home ] [ Index: by date | by threads ]
[ Search: ]

[ Message by date: previous | next ] [ Message in thread: previous | next ] [ Thread: previous | next ]
Date: -- (:)
From: Jean-Christophe Filliatre <Jean-Christophe.Filliatre@l...>
Subject: Re: [Caml-list] index of substring

skaller writes:
 > > 
 > > Ocamllex is definitely the easiest.
 > 
 > however by itself this will not supported nested
 > comments which Ocaml allows .. :)

What's wrong with this way of handling nested comments with ocamllex:

======================================================================

| "(*" { comment lexbuf; ... }
...

and comment = parse
| "(*" { comment lexbuf; comment lexbuf }
| "*)" { () }
| _    { comment lexbuf }

======================================================================

(I may have misunderstood the issue here, since I didn't follow this
thread in details...)

-- 
Jean-Christophe