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 JAA09425; Wed, 9 Oct 2002 09:44:06 +0200 (MET DST) X-Authentication-Warning: pauillac.inria.fr: majordomo set sender to owner-caml-list@pauillac.inria.fr using -f Received: (from weis@localhost) by pauillac.inria.fr (8.7.6/8.7.3) id JAA09431 for caml-list@pauillac.inria.fr; Wed, 9 Oct 2002 09:44:06 +0200 (MET DST) 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 AAA31750 for ; Wed, 9 Oct 2002 00:35:16 +0200 (MET DST) Received: from neurovia.umn.edu (godel.pet.med.va.gov [204.220.39.253]) by nez-perce.inria.fr (8.11.1/8.11.1) with ESMTP id g98MZED09434 for ; Wed, 9 Oct 2002 00:35:15 +0200 (MET DST) Received: from localhost.neurovia.umn.edu (lovelace.pet.med.va.gov [192.102.236.25]) by neurovia.umn.edu (8.9.3/8.9.3) with ESMTP id RAA24276 for ; Tue, 8 Oct 2002 17:35:13 -0500 Received: from kepler (kepler [192.102.236.112]) by localhost.neurovia.umn.edu (8.11.6/8.11.6) with ESMTP id g98MZCg27849 for ; Tue, 8 Oct 2002 17:35:13 -0500 Content-Type: text/plain; charset="us-ascii" From: Josh Stern To: caml-list@inria.fr Subject: [Caml-list] Possible Preprocessor and Debugger Interactions Date: Tue, 8 Oct 2002 17:35:11 -0500 User-Agent: KMail/1.4.2 MIME-Version: 1.0 Content-Transfer-Encoding: quoted-printable Message-Id: <200210081735.11126.josh@neurovia.umn.edu> Sender: owner-caml-list@pauillac.inria.fr Precedence: bulk I noticed in the OCaml reference manual that it is possible to load special purpose printing routines for particular types into ocamldebug. However there is no mention of a facility to load a special parser for ad hoc queries about variable values that one might wish to perform within the debugger, using fragments from the mini-language accepted by a pre-processor. =20 I am thinking, for example of writing a library that allows routines with= =20 prolog-like variable binding. Suppose a pre-processor is used to allow=20 embedded definitions in a prolog-like syntax, which are pre-processed into OCaml source code. For debugging purposes, one would ideally like to query the variable values using a syntax close to the original source file. So my question is "Has anyone has hacked ocamldebug in this type of way and perhaps has a relevant example to share?" And my topical thought is that there are potentially substantive=20 interactions between a sophisticated pre-processor, ocamldebug,=20 and what the compiler does with the '-g' flag. ------------------- 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