English version
Accueil     À propos     Téléchargement     Ressources     Contactez-nous    

Ce site est rarement mis à jour. Pour les informations les plus récentes, rendez-vous sur le nouveau site OCaml à l'adresse ocaml.org.

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: 2005-01-27 (10:20)
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