Charles,

On 7/9/06, Charles O Nutter <[EMAIL PROTECTED]> wrote:

It's obviously not EVERYTHING stored in the AST, but it's almost everything and it gives you a good idea of the parse structure. This script could be a good base for a sort of "uneval" that takes in a node and outputs the Ruby code that produced it. Comments and questions are welcome.


I believe the Swiss students have done a sort of "uneval" visitor as part of their efforts towards refactoring. They can spit out equivalent ruby source given the AST. I'm not sure whether JRuby would need such a thing, but RDT definitely does to do more advanced edits  or even a "smart" code formatter. You guys should check it out (it's just plain neat)...

Thanks,
Chris
--
http://cwilliams.textdriven.com
-------------------------------------------------------------------------
Using Tomcat but need to do more? Need to support web services, security?
Get stuff done quickly with pre-integrated technology to make your job easier
Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642
_______________________________________________
Jruby-devel mailing list
Jruby-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/jruby-devel

Reply via email to