Thank you very much for your help.

I forgot to say that I also tried dhaka and racc (but thanks Daniel).
There were problems getting them to run, so that I throwed them away to 
look for a working parser.

Again, perhaps I'm just incompetend :) to use them.

@James: Ghost Wheel looks very interesting. I will try it out. Also 
TreeTop looks interesting!

Ryan Davis wrote:
> Parser generator (for any grammar specified) or a _ruby_ parser?


Parser generator for Ruby Code

Example:
class X
  def y()
    puts "y"
  end
end

Shall be parsed into a tree so that each element like class/method 
definition, arguments, parameters, variables... has its own leaf inside 
the tree.


Sala





-- 
Posted via http://www.ruby-forum.com/.