caml-list - the Caml user's mailing list
 help / color / mirror / Atom feed
From: Josh Stern <josh@neurovia.umn.edu>
To: caml-list@inria.fr
Subject: [Caml-list] Possible Preprocessor and Debugger Interactions
Date: Tue, 8 Oct 2002 17:35:11 -0500	[thread overview]
Message-ID: <200210081735.11126.josh@neurovia.umn.edu> (raw)


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.   

I am thinking, for example of writing a library that allows routines with 
prolog-like variable binding.  Suppose a pre-processor is used to allow 
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 
interactions between a sophisticated pre-processor, ocamldebug, 
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


             reply	other threads:[~2002-10-09  7:44 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2002-10-08 22:35 Josh Stern [this message]
2002-10-09 12:12 ` Daniel de Rauglaudre

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=200210081735.11126.josh@neurovia.umn.edu \
    --to=josh@neurovia.umn.edu \
    --cc=caml-list@inria.fr \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).