From: skaller <skaller@users.sourceforge.net>
To: Jonathan Roewen <jonathan.roewen@gmail.com>
Cc: caml-list@yquem.inria.fr
Subject: Re: [Caml-list] ocamllex problem
Date: Fri, 05 Aug 2005 11:03:11 +1000 [thread overview]
Message-ID: <1123203791.6720.63.camel@localhost.localdomain> (raw)
In-Reply-To: <ad8cfe7e0508041653624f39ba@mail.gmail.com>
[-- Attachment #1: Type: text/plain, Size: 714 bytes --]
On Fri, 2005-08-05 at 11:53 +1200, Jonathan Roewen wrote:
> Yes, I'm retarded. Ignore me ;-)
No way .. you picked something I didn't know:
> > | ':'((letter|' ')* as s) { STRING s }
I check the manual .. yup, you can match
subgroups like that..
How does that work??? The algorithm for handling
this for a DFA is non-trivial. Any pointers to
the algorithm used?
Alain Frisch pointed me at some nasty papers on
this, one with a regexp -> NFA conversion and the
other with a NFA-> DFA conversion, but I couldn't
figure out how to do the direct regexp->DFA conversion,
I'd sure like to find an algorithm for that..
--
John Skaller <skaller at users dot sourceforge dot net>
[-- Attachment #2: This is a digitally signed message part --]
[-- Type: application/pgp-signature, Size: 189 bytes --]
next prev parent reply other threads:[~2005-08-05 1:03 UTC|newest]
Thread overview: 10+ messages / expand[flat|nested] mbox.gz Atom feed top
2005-08-04 23:12 Jonathan Roewen
2005-08-04 23:53 ` Jonathan Roewen
2005-08-05 1:03 ` skaller [this message]
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
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=1123203791.6720.63.camel@localhost.localdomain \
--to=skaller@users.sourceforge.net \
--cc=caml-list@yquem.inria.fr \
--cc=jonathan.roewen@gmail.com \
/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