On 13.2.2005, at 18:36, Ilmari Heikkinen wrote:
>
> I hacked some on the original RubyToRuby class of Ryan Davis. Now it 
> parses most of ruby syntax, including itself.
>

Oh, forgot to mention, it does indentation too :)

http://dark.fhtr.org/generated_source.rb

The bit to make it print

def foo
   5
rescue
   10
end

as such instead of

def foo
   5
   rescue
     10
end

made it kinda messy though, but such is life...