From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: 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 3D32EBCAF for ; Sun, 3 Jul 2005 23:36:03 +0200 (CEST) Received: from postfix4-1.free.fr (postfix4-1.free.fr [213.228.0.62]) by concorde.inria.fr (8.13.0/8.13.0) with ESMTP id j63La2e5004857 for ; Sun, 3 Jul 2005 23:36:03 +0200 Received: from [192.168.0.1] (rke75-3-82-229-183-156.fbx.proxad.net [82.229.183.156]) by postfix4-1.free.fr (Postfix) with ESMTP id C4CA1317FE1; Sun, 3 Jul 2005 23:36:02 +0200 (CEST) Message-ID: <42C85952.7070206@inria.fr> Date: Sun, 03 Jul 2005 23:32:02 +0200 From: Alain Frisch User-Agent: Debian Thunderbird 1.0.2 (X11/20050331) X-Accept-Language: en-us, en MIME-Version: 1.0 To: Paul Snively Cc: caml-list@yquem.inria.fr Subject: Re: [Caml-list] Using ulex References: <73C4942E-2CD1-42AC-91D7-7D0939AA7FA6@mac.com> In-Reply-To: <73C4942E-2CD1-42AC-91D7-7D0939AA7FA6@mac.com> Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit X-Miltered: at concorde with ID 42C85A43.000 by Joe's j-chkmail (http://j-chkmail.ensmp.fr)! X-Spam: no; 0.00; frisch:01 frisch:01 caml-list:01 lexer:01 syntax:01 o'caml:01 findlib:01 toplevel:01 compilation:01 wrote:01 declarations:02 alain:03 alain:03 unit:03 module:03 X-Spam-Checker-Version: SpamAssassin 3.0.2 (2004-11-16) on yquem.inria.fr X-Spam-Status: No, score=0.0 required=5.0 tests=none autolearn=disabled version=3.0.2 X-Spam-Level: Paul Snively wrote: > I'm trying to use Alain Frisch's ulex to write a simple .ini file > lexer. I'm still pretty new to the module system, how libraries work, > and in particular how camlp4 and syntax extensions work. Here are the > things I've tried to just get ulex to tell me I'm not being foolish. > This is with O'Caml 3.08.3 and findlib 1.0.4 on Mac OS X 10.4.1: Ulex is not designed to work in the toplevel. (Technical reason: it adds some declarations at the beginning of the compilation unit.) -- Alain