From mboxrd@z Thu Jan 1 00:00:00 1970 Received: (from majordomo@localhost) by pauillac.inria.fr (8.7.6/8.7.3) id LAA02185; Mon, 19 Jan 2004 11:13:56 +0100 (MET) X-Authentication-Warning: pauillac.inria.fr: majordomo set sender to owner-caml-list@pauillac.inria.fr using -f Received: from concorde.inria.fr (concorde.inria.fr [192.93.2.39]) by pauillac.inria.fr (8.7.6/8.7.3) with ESMTP id LAA01112 for ; Mon, 19 Jan 2004 11:13:55 +0100 (MET) Received: from beaune.inria.fr (beaune.inria.fr [128.93.8.3]) by concorde.inria.fr (8.11.1/8.11.1) with ESMTP id i0JADsP26910 for ; Mon, 19 Jan 2004 11:13:54 +0100 (MET) Received: by beaune.inria.fr (8.8.8/1.1.22.3/14Sep99-0328PM) id LAA0000019886; Mon, 19 Jan 2004 11:13:54 +0100 (MET) Date: Mon, 19 Jan 2004 11:13:53 +0100 From: Luc Maranget To: Brian Hurt Cc: Richard Jones , Ocaml Mailing List Subject: Re: [Caml-list] ANNOUNCE: mod_caml 1.0.6 - includes security patch Message-ID: <20040119111353.A31726@beaune.inria.fr> References: <20040116093454.GA23909@redhat.com> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline User-Agent: Mutt/1.2.5.1i In-Reply-To: ; from bhurt@spnz.org on Fri, Jan 16, 2004 at 01:05:15PM -0600 X-Loop: caml-list@inria.fr X-Spam: no; 0.00; caml-list:01 foo:01 matchings:01 compiler:01 caml:01 patch:02 maranget:02 maranget:02 match:02 match:02 string:03 wrote:03 library:03 str:05 luc:05 Sender: owner-caml-list@pauillac.inria.fr Precedence: bulk > On Fri, 16 Jan 2004, Richard Jones wrote: > > > Being able to write: > > > > var ~ /ab+/ > > > > and similar certainly makes string handling and simple parsing a lot > > easier. > > > > That (or something close to that) could be done via a library. What I'd > like to see is to be able to pattern match on regexs, like: > > match str with > | /ab+/ -> ... > | /foo(bar)*/ -> ... > > etc. The compiler could then combine all the matchings into a single DFA, > improving performance over code like: > Hello, I am not exactly sure I understand your needs. But you should probably have a look at ocamllex. -- Luc Maranget ------------------- To unsubscribe, mail caml-list-request@inria.fr Archives: http://caml.inria.fr Bug reports: http://caml.inria.fr/bin/caml-bugs FAQ: http://caml.inria.fr/FAQ/ Beginner's list: http://groups.yahoo.com/group/ocaml_beginners