[LLVMdev] C++ Interpreter
Renato Golin
rengolin at systemcall.org
Tue Sep 1 01:40:07 PDT 2009
2009/8/31 Douglas Gregor <dgregor at apple.com>:
> Clang is meant to be flexible enough to be used as the basis for a C++
> interpreter. However, there will probably be a bit of work to do in Clang to
> make this happen, e.g., by providing clean APIs for an interpreter to call
> into Clang's parser to parse a new expression/statement/function.
Ok, my bad, language barrier. ;)
Speaking of those APIs, I guess if you do have something of the sort,
it may be easy to evaluate expressions and understanding the structure
of a program on a debugger.
If you manage to parse dwarf information on the same structure as
clang (or the interpreter) does with code, one can later list the
members of a class, print their values etc.
cheers,
--renato
Reclaim your digital rights, eliminate DRM, learn more at
http://www.defectivebydesign.org/what_is_drm
More information about the llvm-dev
mailing list