caml-list - the Caml user's mailing list
 help / color / mirror / Atom feed
From: Michael Wohlwend <micha-1@fantasymail.de>
To: caml-list@yquem.inria.fr
Subject: Re: [Caml-list] ocamllex regexp problem
Date: Wed, 19 Mar 2008 10:00:32 +0100	[thread overview]
Message-ID: <200803191000.32196.micha-1@fantasymail.de> (raw)
In-Reply-To: <c7e4e9f0803181903p49ab284h8ad74e8021be2ccd@mail.gmail.com>

Am Mittwoch, 19. März 2008 03:03:25 schrieb Jake Donham:
> Hi list,
>   rule token = parse
>   [...]


I think the longest match rule eats the whole input.
maybe you want:

   rule token = parse
   [...]

           | "<![CDATA["  { cdata lexbuf }

   [...]

  and cdata = shortest
   | (_* as d)  "]]>" {  Printf.printf "found data:'%s'\n" d; }



 Michael


  reply	other threads:[~2008-03-19  9:01 UTC|newest]

Thread overview: 4+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2008-03-19  2:03 Jake Donham
2008-03-19  9:00 ` Michael Wohlwend [this message]
2008-03-19 15:21 ` [Caml-list] " Martin Jambon
2008-03-19 16:39 ` Jake Donham

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=200803191000.32196.micha-1@fantasymail.de \
    --to=micha-1@fantasymail.de \
    --cc=caml-list@yquem.inria.fr \
    /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).