From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Original-To: caml-list@yquem.inria.fr Delivered-To: caml-list@yquem.inria.fr Received: from concorde.inria.fr (concorde.inria.fr [192.93.2.39]) by yquem.inria.fr (Postfix) with ESMTP id C614CBB9C for ; Mon, 5 Dec 2005 07:26:12 +0100 (CET) Received: from mail-out.ody.ca (mail-out.ody.ca [216.240.0.7]) by concorde.inria.fr (8.13.0/8.13.0) with ESMTP id jB56QBOH000954 for ; Mon, 5 Dec 2005 07:26:12 +0100 Received: from [192.168.0.3] (dslg204.ody.ca [216.99.101.204]) by mail-out.ody.ca (8.13.4/8.13.4) with ESMTP id jB56OkDh014302 for ; Mon, 5 Dec 2005 01:24:46 -0500 (EST) Mime-Version: 1.0 (Apple Message framework v746.2) In-Reply-To: <1133760933.8957.125.camel@rosella> References: <1133760933.8957.125.camel@rosella> Content-Type: text/plain; charset=US-ASCII; delsp=yes; format=flowed Message-Id: <2A759055-4FF9-4AE6-B3C6-EAAF112B1B55@wozniak.ca> Content-Transfer-Encoding: 7bit From: Geoff Wozniak Subject: Re: [Caml-list] Another nasty with ocamlyacc: magic needed? Date: Mon, 5 Dec 2005 01:25:58 -0500 To: caml-list@yquem.inria.fr X-Mailer: Apple Mail (2.746.2) X-Miltered: at concorde with ID 4393DD83.000 by Joe's j-chkmail (http://j-chkmail.ensmp.fr)! X-Spam: no; 0.00; caml-list:01 ocamlyacc:01 parsers:01 tokens:01 flamewar:01 wrote:01 lisp:01 module:03 problem:05 problem:05 although:08 i'm:08 university:10 magic:10 magic:10 X-Spam-Checker-Version: SpamAssassin 3.0.3 (2005-04-27) on yquem.inria.fr X-Spam-Level: X-Spam-Status: No, score=0.0 required=5.0 tests=none autolearn=disabled version=3.0.3 On 5-Dec-05, at 12:35 AM, skaller wrote: > I need two *distinct* parsers which use the same set > of tokens. This is currently impossible AFAICS without > magic (distinct -- in a different module entirely) > For the record, I ran into this problem myself. The easiest solution to my particular problem was to switch to using Lisp, although I am not advocating that you do the same. (I'm not interested in any kind of language evangelizing flamewar.) I couldn't think of an appealing way to deal with the problem. -- Geoff Wozniak PhD Candidate Department of Computer Science University of Western Ontario