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 BAA24113; Fri, 23 May 2003 01:04:28 +0200 (MET DST) X-Authentication-Warning: pauillac.inria.fr: majordomo set sender to owner-caml-list@pauillac.inria.fr using -f Received: from nez-perce.inria.fr (nez-perce.inria.fr [192.93.2.78]) by pauillac.inria.fr (8.7.6/8.7.3) with ESMTP id BAA24093 for ; Fri, 23 May 2003 01:04:27 +0200 (MET DST) Received: from opus.davidb.org (66-75-152-1.san.rr.com [66.75.152.1]) by nez-perce.inria.fr (8.11.1/8.11.1) with ESMTP id h4MN4QT19469 for ; Fri, 23 May 2003 01:04:27 +0200 (MET DST) Received: from davidb by opus.davidb.org with local (Exim 3.31 #1 (Debian)) id 19Iz6m-0005j6-00 for ; Thu, 22 May 2003 16:04:24 -0700 Date: Thu, 22 May 2003 16:04:24 -0700 From: David Brown To: caml-list@inria.fr Subject: Re: [Caml-list] ocamllex, regular expression syntax Message-ID: <20030522230424.GA21973@opus.davidb.org> References: <20030522205632.GA2130@kunz.ratzer> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20030522205632.GA2130@kunz.ratzer> User-Agent: Mutt/1.4i X-Spam: no; 0.00; caml-list:01 regexps:01 0200,:01 readable:01 syntax:02 whitespace:02 dave:03 wrote:03 perl:03 ocamllex:05 mode:07 difficult:07 thu:08 davidb:08 certainly:09 Sender: owner-caml-list@pauillac.inria.fr Precedence: bulk On Thu, May 22, 2003 at 10:56:33PM +0200, Stefan Heimann wrote: > "[^"\\]*(\\.[^"\\]*)*" > > are not easy to read, but with the ocamllex syntax it is even more > difficult: > > '"'[^'"''\\']*('\\'_[^'"''\\']*)*'"' But don't you find: '"' [^ '"' '\\' ]* ( '\\' _ [^ '"' '\\']* )* easier to read. I certainly do. Perl even has a mode where whitespace can be inserted into regexps to make them more readable. Dave ------------------- 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