title: A delphi code parser that can re-output the delphi source code?
body: <p>I am trying to do some source-level modifications for delphi source code<br>
  (I am working with older delphi6 source code but i am interested in any general feedback).<br>
  My direction is to parse the delphi tree, make additions/modifications to the AST or virtual nodes of the parsers, and re-output the code</p>
  
  <p>The the Castalia code parser is nice<br>
  <a href="https://github.com/jacobthurman/Castalia-Delphi-Parser" rel="nofollow">https://github.com/jacobthurman/Castalia-Delphi-Parser</a><br>
  But currently there is no code to regenerate the original source code from the parser tree  </p>
  
  <p>As a fallback i can output the source code in each virtual node but there is a more complete library?!</p>
  
  <p>I have seen references to the Jedi Code Formatter which could really do the trick
  But does the JCF offer the same easy access to each node in the AST where i can make modifications ?!</p>
  
  <p>Thanks all</p>