From: Eric Mahurin Date: 2005-05-11T05:14:01+09:00 Subject: Re: Does any Ruby parser exist ? Here is general parser/lexer I did: http://www.ruby-talk.org/cgi-bin/scat.rb/ruby/ruby-talk/138450 It is quite functional right now. I see no reason you couldn't write up the grammar for Ruby and do whatever you want to the parse tree (during parsing or after). I'll be renaming the project to 'grammar' and putting it on rubyforge. The primary things on my list are some additions to make creating a lexer easier and a better IO interface (rubyforge project 'cursor'). The same classes will be used for the parser and lexer - they just parse different things - tokens vs. characters. --- Lothar Scholz wrote: > Hello ruby-talk, > > Does any Ruby parser existother then the internal one inside > the ruby > interpreter. I found a few projects but most of them seems to > be dead. > > bRuby (not really a parser) and Ripper are old and not > touched since > 2003. I need some positional data for the AST and a defined > way to > traverse the AST. Even the ParseTree project forgets to > traverse some > branches inside the tree. > > > > -- > Best regards, emailto: scholz at > scriptolutions dot com > Lothar Scholz http://www.ruby-ide.com > CTO Scriptolutions Ruby, PHP, Python IDE > 's > > > > __________________________________ Do you Yahoo!? Yahoo! Mail - Helps protect you from nasty viruses. http://promotions.yahoo.com/new_mail