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 UAA27705; Wed, 25 Feb 2004 20:33:45 +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 UAA27434 for ; Wed, 25 Feb 2004 20:33:41 +0100 (MET) Received: from speakeasy.org (dialup-67.75.199.144.Dial1.Seattle.Level3.net [67.75.199.144]) by concorde.inria.fr (8.12.10/8.12.10) with ESMTP id i1PJXbae014298 for ; Wed, 25 Feb 2004 20:33:38 +0100 Received: (from shawnw@localhost) by speakeasy.org (8.10.1/8.10.1) id i1PJVGO12728 for caml-list@inria.fr; Wed, 25 Feb 2004 11:31:16 -0800 Date: Wed, 25 Feb 2004 11:31:16 -0800 From: Shawn Wagner To: caml-list@inria.fr Subject: Re: [Caml-list] start conditions in ocamllex Message-ID: <20040225193116.GF27866@speakeasy.org> Mail-Followup-To: caml-list@inria.fr References: <20040225180744.GA23865@ccs.neu.edu> <20040225190056.GE27866@speakeasy.org> <20040225192309.GA22138@tallman.kefka.frap.net> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20040225192309.GA22138@tallman.kefka.frap.net> User-Agent: Mutt/1.4.2i X-Miltered: at concorde by Joe's j-chkmail ("http://j-chkmail.ensmp.fr")! X-Loop: caml-list@inria.fr X-Spam: no; 0.00; shawnw:01 caml-list:01 2004:99 knowles:99 passing:01 shawnw:01 speakeasy:01 speakeasy:01 syntax:02 wrote:03 cleaner:04 cleaner:04 parameter:04 0800,:04 ocamllex:05 Sender: owner-caml-list@pauillac.inria.fr Precedence: bulk On Wed, Feb 25, 2004 at 11:23:09AM -0800, Kenneth Knowles wrote: > > > Has anyone thought of implementing start conditions for ocamllex? > > > Can't you get the same effect with multiple entrypoints? Though this syntax > > is probably cleaner. > > > > I disagree; I think different entry points are cleaner. In some recent release > they added the ability to pass your own parameter to the rules, and so I > maintain state by passing a reference to the state. I wasn't aware you could do that. Makes it a lot nicer than what I was thinking of, yup. -- Shawn Wagner shawnw@speakeasy.org ------------------- 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