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 TAA24529; Mon, 6 Sep 2004 19:49:46 +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 TAA26276 for ; Mon, 6 Sep 2004 19:49:45 +0200 (MET DST) Received: from smtp1.adl2.internode.on.net (smtp1.adl2.internode.on.net [203.16.214.181]) by nez-perce.inria.fr (8.13.0/8.13.0) with ESMTP id i86HnhEb021222 for ; Mon, 6 Sep 2004 19:49:44 +0200 Received: from [192.168.1.200] (ppp210-32.lns2.syd3.internode.on.net [203.122.210.32]) by smtp1.adl2.internode.on.net (8.12.9/8.12.9) with ESMTP id i86Hnd4Y078371; Tue, 7 Sep 2004 03:19:41 +0930 (CST) Subject: Re: [Caml-list] ocamllex parametrized parse regexp From: skaller Reply-To: skaller@users.sourceforge.net To: charles.lehalle@miriadtech.com Cc: caml-list In-Reply-To: References: <20040906155041.GG7964@alan-schm1p> Content-Type: text/plain Message-Id: <1094492979.3352.1238.camel@pelican.wigram> Mime-Version: 1.0 X-Mailer: Ximian Evolution 1.2.2 (1.2.2-4) Date: 07 Sep 2004 03:49:39 +1000 Content-Transfer-Encoding: 7bit X-Miltered: at nez-perce with ID 413CA337.000 by Joe's j-chkmail (http://j-chkmail.ensmp.fr)! X-Loop: caml-list@inria.fr X-Spam: no; 0.00; caml-list:01 sourceforge:01 2004:99 lehalle:01 regexps:01 9660:01 glebe:01 regexp:01 regexp:01 nsw:01 snail:02 compile:02 checkout:02 external:03 2037:03 Sender: owner-caml-list@pauillac.inria.fr Precedence: bulk On Tue, 2004-09-07 at 02:08, lehalle@miriad wrote: > Hi, > > I try to use ocamllex like this (I want to have one of the parsing regexp > to be read from an external file) : > let mark = ...read in a file... No, you can't do this directly: ocamllex regexps have to be known at ocamllex compile time. -- John Skaller, mailto:skaller@users.sf.net voice: 061-2-9660-0850, snail: PO BOX 401 Glebe NSW 2037 Australia Checkout the Felix programming language http://felix.sf.net ------------------- 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