On 3/24/07, Erick Tryzelaar <[EMAIL PROTECTED]> wrote: > How > difficult would it be to support something like this? > > regmatch "host:/foo/bar/baz" with > | ((alphanumeric+ as ?host) ":" (_* as ?path)) as ?arg => Some (arg, > host, port) > | _ => None > endregmatch;
I thought Felix did this already, at least for regexps? Regardless, support for this is straightforward (even while keeping O(n) matching, thanks to Laurikari's algorithm); it's just a matter of integrating the algorithm with what's already in Felix. The relevant papers are at [1]. I volunteered to take a stab at implementing it after classes get out, as my first foray into Felix's source code (presuming someone else doesn't beat me to it). - Chris [1] http://laurikari.net/ville/cv.html#thesis ------------------------------------------------------------------------- Take Surveys. Earn Cash. Influence the Future of IT Join SourceForge.net's Techsay panel and you'll get the chance to share your opinions on IT & business topics through brief surveys-and earn cash http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV _______________________________________________ Felix-language mailing list Felix-language@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/felix-language