|Generic AST in XML for any language email@example.com (Kalahan) (2010-03-11)|
|Re: Generic AST in XML for any language firstname.lastname@example.org (Ira Baxter) (2010-03-13)|
|Re: Generic AST in XML for any language email@example.com (BGB / cr88192) (2010-03-13)|
|Re: Generic AST in XML for any language firstname.lastname@example.org (2010-03-14)|
|Re: Generic AST in XML for any language email@example.com (Manuel Collado) (2010-03-14)|
|Re: Generic AST in XML for any language firstname.lastname@example.org (Olaf Krzikalla) (2010-03-15)|
|Re: Generic AST in XML for any language email@example.com (Nikolaos Kavvadias) (2010-03-18)|
|Re: Generic AST in XML for any language DrDiettrich1@aol.com (Hans-Peter Diettrich) (2010-03-20)|
|From:||Olaf Krzikalla <firstname.lastname@example.org>|
|Date:||Mon, 15 Mar 2010 11:49:00 +0100|
|Posted-Date:||15 Mar 2010 21:57:19 EDT|
> 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.
[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]
Return to the
Search the comp.compilers archives again.