This is the mail archive of the gcc@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]

Re: Using of parse tree externally


Robert Dewar wrote:
> In the case of GNAT, we not only generate a tree, but we provide an API
> for reading the tree that has the modified GPL. [...]

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.

Other proprietary Ada compiler technologies are also providing this
API, and this allows anyone to write portable Ada source analysis
tools. Several companies are in this business.

For more information on ASIS, see for example:

<http://wwwold.dkuug.dk/JTC1/SC22/WG9/>
<http://www.acm.org/sigada/wg/asiswg/>

The AST standardization effort is already done for Ada and GNU Ada
implements it.

For GNU C and C++, it would indeed be better to have a GNU standard
than to risk having multiple proprietary things based on GCC, but I'm
not very aware of what's going on there ;-).

-- 
Laurent Guerby <guerby@acm.org>

Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]