Note that there are some explanatory texts on larger screens.

plurals
  1. POHow to convert source code to a xml based representation of the ast?
    primarykey
    data
    text
    <p>i wanna get a xml representation of the ast of java and c code. 3 months ago, i asked <a href="https://stackoverflow.com/questions/2229542?tab=oldest#tab-top">this question yet</a> but the solutions weren't comfortable for me</p> <ul> <li><a href="http://www.sdml.info/projects/srcml/" rel="nofollow noreferrer">srcml</a> seems to be a good solution for this problem but it does not support line numbers and columns but i need that feature.</li> <li>about <a href="http://scottmcpeak.com/elkhound/" rel="nofollow noreferrer">elsa</a>: cite: "There is ongoing effort to export the Elsa AST as an XML document; we expect to be able to advertise this in the next public release."</li> <li><a href="http://www.semanticdesigns.com/Products/DMS/DMSToolkit.html" rel="nofollow noreferrer">dms</a>... didn't understand that.</li> <li>especially for java, there is <a href="http://www.badros.com/greg/JavaML/" rel="nofollow noreferrer">javaml</a> which supports line numbers. but the <a href="http://sourceforge.net/projects/javaml/files/" rel="nofollow noreferrer">sourceforge page</a> doesn't list any files.</li> </ul> <p>question: there's software available which supports conversion of ast into xml which supports line numbers (and columns) [especially for java and c/c++]? is there an alternative to javaml and srcml?</p> <p>ps: i don't wanne have parser generators. i hope to find a tool which can be used on the console typing: ./my-xml-generator Test.java [or something like that]... or a java implementation would be great too.</p>
    singulars
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    plurals
    1. This table or related slice is empty.
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload