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 PAA26834; Tue, 30 Apr 2002 15:54:37 +0200 (MET DST) 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 PAA26830 for ; Tue, 30 Apr 2002 15:54:36 +0200 (MET DST) Received: from tkb.mpl.com ([66.109.164.210]) by concorde.inria.fr (8.11.1/8.11.1) with ESMTP id g3UDsY510845 for ; Tue, 30 Apr 2002 15:54:35 +0200 (MET DST) Received: from tkb.mpl.com (tkb.mpl.com [66.109.164.210]) by tkb.mpl.com (8.11.6/8.11.6) with ESMTP id g3UDsW910707; Tue, 30 Apr 2002 09:54:33 -0400 (EDT) (envelope-from tkb@tkb.mpl.com) From: "T. Kurt Bond" MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit Message-ID: <15566.41496.292857.518523@tkb.mpl.com> Date: Tue, 30 Apr 2002 09:54:32 -0400 To: caml-list@inria.fr Subject: Re: [Caml-list] How to read three integers from a text-file... ? In-Reply-To: <20020430142015.B21691@pauillac.inria.fr> References: <20020424212316.GA26318@cs.net.pl> <15557.14957.358556.545541@absurd.mimuw.edu.pl> <20020429084410.A3490@pauillac.inria.fr> <4.1.20020430114454.009caaf0@127.0.0.1> <20020430142015.B21691@pauillac.inria.fr> X-Mailer: VM 7.00 under Emacs 21.2.1 Sender: owner-caml-list@pauillac.inria.fr Precedence: bulk Francois Pottier, speaking of using a "Functional Unparsing" like approach (cps) to regexps writes: > Yes, it would be very nice to use this approach for regexps. Unfortunately, > Danvy's encoding relies on the fact that the format specification is *not* > a string. So, it would be possible to devise something along these lines, > but the good old regexp syntax would probably have to be dropped. That is not necessarily a bad thing. The classic string-based regexp syntax has often been criticized for unreadability. Scsh's SRE sexp-based regexp syntax may be an improvement. I imagine that something using this a cps approach could be an improvement, since the "Functional Unparsing" approach to printing seems to provide a reasonable notation. -- T. Kurt Bond, tkb@tkb.mpl.com ------------------- 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