Hey folks!
I'm searching for a working Ruby parser. I found:
coco-ruby 1.0.0
antlr(antlr3rubytarget)
I tried both but they didn't worked for me. (Perhaps I did something
wrong...)
Does anyone of you uses / knows a working parser for Ruby?
Thanks for your help.
sala
···
--
Posted via http://www.ruby-forum.com/.
I made my own Ghost Wheel library for generating parsers:
http://rubyforge.org/projects/ghostwheel/
It's still young, so I'm sure it has rough edges but I've used it for a few tasks now. The documentation hasn't been written yet, but I did show a sample of usage on my blog:
Gray Soft / Not Found
You may also want to look at the Treetop parser:
http://rubyforge.org/projects/treetop
Hope that helps.
James Edward Gray II
···
On Jan 25, 2008, at 9:24 AM, Saladin Mundi wrote:
I'm searching for a working Ruby parser. I found:
coco-ruby 1.0.0
antlr(antlr3rubytarget)
I tried both but they didn't worked for me. (Perhaps I did something
wrong...)
Does anyone of you uses / knows a working parser for Ruby?
Also see
Dhaka
http://dhaka.rubyforge.org/
Racc
http://i.loveruby.net/en/projects/racc/
Daniel Brumbaugh Keeney
···
On Jan 25, 2008 9:24 AM, Saladin Mundi <saladin.mundi@gmx.de> wrote:
Hey folks!
I'm searching for a working Ruby parser. I found:
coco-ruby 1.0.0
antlr(antlr3rubytarget)
Parser generator (for any grammar specified) or a _ruby_ parser?
···
On Jan 25, 2008, at 07:24 , Saladin Mundi wrote:
Does anyone of you uses / knows a working parser for Ruby?
Thanks for your help.
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/\.
I you want some help getting started, I've been learning both Treetop
and Dhaka for the last month or so and would be happy to help you get
started. (Not that I'm necessarily any good at them, but I've made
them work at least.) Ghost Wheel look nice, so I might try learning
that too. I can be found loitering on irc://irc.freenode.net/#rubyunix
Daniel Brumbaugh Keeney
Saladin Mundi wrote:
Ryan Davis wrote:
Parser generator (for any grammar specified) or a _ruby_ parser?
Parser generator for Ruby Code
Check out the post at <ruby_parser 1.0: a Ruby Parser written in Ruby;
for the status on a pure Ruby parser for Ruby.
I believe that Nathan Sobo is planning to write a Ruby parser in Treetop.
Much easier than trying to do it with a limited-lookahead parser like racc,
even though Ryan seems to have achieved it :-). And obviously MRI does...
Clifford Heath.
Hi Daniel,
I just found Treetop and I was waiting for such a lib for quite a time
now, not able to code it myself 
Can you compare Treetop and Dharka ?
Which one do you prefer ?
Mickael Faivre-Maçon
···
On Jan 26, 2008 7:16 PM, Daniel Brumbaugh Keeney <devi.webmaster@gmail.com> wrote:
I you want some help getting started, I've been learning both Treetop
and Dhaka for the last month or so and would be happy to help you get
started. (Not that I'm necessarily any good at them, but I've made
them work at least.) Ghost Wheel look nice, so I might try learning
that too. I can be found loitering on irc://irc.freenode.net/#rubyunix
Daniel Brumbaugh Keeney
--
Mickael.
Coding an AI ! http://faivrem.googlepages.com/antbattle
Clifford Heath wrote:
Check out the post at
<ruby_parser 1.0: a Ruby Parser written in Ruby;
thanks for this website. the ruby_parser looks good.
I will also try it
···
--
Posted via http://www.ruby-forum.com/\.
I wouldn't, and I wrote it. 
Seriously, ruby_parser is slow, ugly, and ... ugly.
Look at ParseTree instead. ruby_parser will catch up, but it'll take time.
···
On Jan 29, 2008, at 13:47 , Saladin Mundi wrote:
Clifford Heath wrote:
Check out the post at
<ruby_parser 1.0: a Ruby Parser written in Ruby;
thanks for this website. the ruby_parser looks good.
I will also try it