From: Jean-Christophe Filliatre <Jean-Christophe.Filliatre@lri.fr>
To: skaller@users.sourceforge.net
Cc: Radu Grigore <radugrigore@gmail.com>,
"yjc01@doc.ic.ac.uk" <yjc01@doc.ic.ac.uk>,
caml-list <caml-list@inria.fr>
Subject: Re: [Caml-list] index of substring
Date: Thu, 27 Jan 2005 11:20:15 +0100 [thread overview]
Message-ID: <16888.49247.996632.225091@gargle.gargle.HOWL> (raw)
In-Reply-To: <1106818582.6734.154.camel@pelican.wigram>
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
next prev parent reply other threads:[~2005-01-27 10:20 UTC|newest]
Thread overview: 11+ messages / expand[flat|nested] mbox.gz Atom feed top
2005-01-27 0:41 yjc01
2005-01-27 4:21 ` [Caml-list] " Matt Gushee
2005-01-27 6:44 ` Radu Grigore
2005-01-27 9:36 ` skaller
2005-01-27 10:20 ` Jean-Christophe Filliatre [this message]
2005-01-27 16:55 ` skaller
2005-01-27 17:20 ` Radu Grigore
2005-01-28 8:51 ` Jean-Christophe Filliatre
2005-01-28 13:31 ` skaller
2005-01-27 8:37 ` Oliver Bandel
2005-01-27 9:17 ` Xavier Leroy
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=16888.49247.996632.225091@gargle.gargle.HOWL \
--to=jean-christophe.filliatre@lri.fr \
--cc=caml-list@inria.fr \
--cc=radugrigore@gmail.com \
--cc=skaller@users.sourceforge.net \
--cc=yjc01@doc.ic.ac.uk \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
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).