Re: xml as intermediate representation



tanuj wrote:

> I am writing a compiler as a part of my course project and wanted to
> use xml as an intermediate representation language.All the coding is
> being done in C. Can u suggest me how to go about it.It would be great
> if u could mention some online resources available.

Last year I found this one:

Using XML as an Intermediate Form for Compiler Development
http://www.idealliance.org/papers/xml2001/papers/html/03-05-04.html

It is totally acceptable if you do the coding in C.
But you should at least consider other languages.
When reading, transforming and writing XML, the canonical
approach probably is to use XSL. The XSL Cookbook contains
interesting examples:

http://www.oreilly.com/catalog/xsltckbk/

.



Relevant Pages

  • Re: xml as intermediate representation
    ... >> use xml as an intermediate representation language. ... For C I'd look at libxml for the XML parsing. ... and you could get that by writing a routine to dump the IR ... the format in the compiler. ...
    (comp.compilers)
  • Re: xml as intermediate representation
    ... > I am writing a compiler as a part of my course project and wanted to ... > use xml as an intermediate representation language. ... Why use XML? ...
    (comp.compilers)
  • Re: next ISO/ANSI standard for C++
    ... > to XML widespread-ness, but mostly to the length of one's career, no? ... 3rd party libraries. ... Wouldn't it be good to just provide a standard ... The more the compiler has to decide, the less probable it is to ...
    (comp.lang.cpp)
  • XML-based object orientated pre-Assembler
    ... I have been promising an object orientated ASM IDE for a while now. ... Trying to make the best of what is already here, I have made a compiler, ... that will parse XML code and output ASM files. ...
    (alt.lang.asm)
  • Re: xml as intermediate representation
    ... > [I agree that if you're going to pass stuff from phase to phase, XML ... otherwise have a tendency to tie you closely in to both the compiler ... writers preferred language and data model. ... data would give a tremendous amount of flexibility, ...
    (comp.compilers)