Version française
Home     About     Download     Resources     Contact us    
Browse thread
[Caml-list] Possible Preprocessor and Debugger Interactions
[ Home ] [ Index: by date | by threads ]
[ Search: ]

[ Message by date: previous | next ] [ Message in thread: previous | next ] [ Thread: previous | next ]
Date: -- (:)
From: Josh Stern <josh@n...>
Subject: [Caml-list] Possible Preprocessor and Debugger Interactions

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