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 nez-perce.inria.fr (nez-perce.inria.fr [192.93.2.78]) by yquem.inria.fr (Postfix) with ESMTP id 9CAFCBBA7 for ; Wed, 16 Nov 2005 20:54:57 +0100 (CET) Received: from pauillac.inria.fr (pauillac.inria.fr [128.93.11.35]) by nez-perce.inria.fr (8.13.0/8.13.0) with ESMTP id jAGJsvks009036 for ; Wed, 16 Nov 2005 20:54:57 +0100 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 UAA29510 for ; Wed, 16 Nov 2005 20:54:54 +0100 (MET) Received: from mz2.forethought.net (mzpi4.forethought.net [216.241.36.13]) by concorde.inria.fr (8.13.0/8.13.0) with ESMTP id jAGJsqZd010310 (version=TLSv1/SSLv3 cipher=EDH-RSA-DES-CBC3-SHA bits=168 verify=NO) for ; Wed, 16 Nov 2005 20:54:54 +0100 Received: from [216.241.35.41] (helo=[10.0.0.2]) by mz2.forethought.net with esmtp (Exim 4.51) id 1EcTMp-0001gv-SO for caml-list@inria.fr; Wed, 16 Nov 2005 12:54:52 -0700 Message-ID: <437B8EB5.9090309@gushee.net> Date: Wed, 16 Nov 2005 12:55:33 -0700 From: Matt Gushee User-Agent: Mozilla Thunderbird 1.0.7 (X11/20051002) X-Accept-Language: en-us, en MIME-Version: 1.0 To: caml-list@inria.fr Subject: Tkcompiler parse error Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit X-Miltered: at nez-perce with ID 437B8E91.000 by Joe's j-chkmail (http://j-chkmail.ensmp.fr)! X-Miltered: at concorde with ID 437B8E8C.002 by Joe's j-chkmail (http://j-chkmail.ensmp.fr)! X-Spam: no; 0.00; tkcompiler:01 labltk:01 evidently:01 ocaml:01 labltk:01 makefile:01 ocaml-:01 3.08.4:01 otherlibs:01 labltk':01 ocamlrun:01 compiler:01 tkcompiler:01 uncaught:01 compiler:01 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 Hello, all-- I am developing some modifications to LablTk, to bring it up to date with the current stable version of Tk. Most of my work so far has been in the Widgets.src file. I have successfully modified Widgets.src several times before, so I think I have a pretty good idea of how to work with it, but evidently I have made some mistake, because when I try to compile OCaml with the modifications, I get this error: cd labltk; make -f Makefile.gen make[2]: Entering directory \ `/.devel/local.src/ocaml-3.08.4/otherlibs/labltk/labltk' cd ..; ../../boot/ocamlrun compiler/tkcompiler -outdir labltk Uncaught exception: Tables.Compiler_Error("Preprocess error: parse \ error at char 85974, 85974") make[2]: *** [_tkgen.ml] Error 2 The character index is useless, since 85974 is just the total number of characters in my modified Widgets.src. And since I have added three widget types, and added configuration options and/or functions to most of the existing widgets, it is far from obvious where to look for my mistake. How can I diagnose this? Does tkcompiler have a debug mode, or any option that would cause it to give more verbose errors? -- Matt Gushee Englewood, CO, USA