Using of parse tree externally
Robert Dewar
dewar@gnat.com
Fri Oct 20 14:08:00 GMT 2000
<<Some more information for non Ada folks, the API Robert mention is not
specific to GNAT, but is an implementation of the ASIS standard (ASIS
= Ada Semantic Interface Specification, ISO/IEC 15291:1999), which is
basically a large Ada API to access the compiler inner knowledge of
any compiled Ada program.
>>
No, that's incorrect, Laurent is confused. The API I am talking about
is a low level API to read the AST directly.
Yes, we provide an ASIS interface but that is a different level entirely
(it is built on top of the API that I was describing). If anyone is
interested in looking further, the GNAT sources (sinfo.ads and einfo.ads
describing the AST, and tree_in.ads/adb, the API for reading the tree)
have full documentation.
More information about the Gcc
mailing list