Re: Generic AST in XML for any language

Olaf Krzikalla <krzikalla@gmx.de>
Mon, 15 Mar 2010 11:49:00 +0100

          From comp.compilers

Related articles
Generic AST in XML for any language frankalahan@gmail.com (Kalahan) (2010-03-11)
Re: Generic AST in XML for any language idbaxter@semdesigns.com (Ira Baxter) (2010-03-13)
Re: Generic AST in XML for any language cr88192@hotmail.com (BGB / cr88192) (2010-03-13)
Re: Generic AST in XML for any language davide.grandi@mclink.it (2010-03-14)
Re: Generic AST in XML for any language mcollado@fi.upm.es (Manuel Collado) (2010-03-14)
Re: Generic AST in XML for any language krzikalla@gmx.de (Olaf Krzikalla) (2010-03-15)
Re: Generic AST in XML for any language nikolaos.kavvadias@gmail.com (Nikolaos Kavvadias) (2010-03-18)
Re: Generic AST in XML for any language DrDiettrich1@aol.com (Hans-Peter Diettrich) (2010-03-20)
| List of all articles for this month |
From: Olaf Krzikalla <krzikalla@gmx.de>
Newsgroups: comp.compilers,comp.lang.c++
Date: Mon, 15 Mar 2010 11:49:00 +0100
Organization: albasani.net
References: 10-03-020
Keywords: XML
Posted-Date: 15 Mar 2010 21:57:19 EDT

Kalahan schrieb:
> Does anyone knows if there is such thing as an standard to represent
> the basic elements of a language (functions, variables, classes)?
Functions, variables & classes are aren't basic elements of a language
at all. Maybe they are basic elements of a (rather narrow) subset of
programming languages but that's a whole different thing...


> And generated in XML?
... making a XML representation of even programming languages in general
rather impossible IMHO.


Whatever. clang (clang.llvm.org) can output C files as XML like gccxml.
You can even check for differences in the approaches of these two tools.


Best
Olaf Krzikalla
[It is definitely not possible to create a universal intermediate form,
as people have been relearning since the original UNCOL project in the
1950s, but it should be possible to do common analyses for interesting
parts of semantically similar languages. -John]



Post a followup to this message

Return to the comp.compilers page.
Search the comp.compilers archives again.