Ruby Parser

N

Nathan Weston

Are there any reasonably mature ruby parsers out there (preferably
written in ruby or with a ruby interface)?

I googled a little bit and searched RAA but I didn't come up with
much.

Nathan
 
G

gabriele renzi

il 19 Oct 2003 08:06:44 -0700, (e-mail address removed) (Nathan Weston) ha
scritto::
Are there any reasonably mature ruby parsers out there (preferably
written in ruby or with a ruby interface)?

I googled a little bit and searched RAA but I didn't come up with
much.

if you mean 'parser for the ruby syntax' I think you have to rely on
parse.y in the interpreter distribution..
Many people is looking for this :)
 
H

henon

Nathan said:
Are there any reasonably mature ruby parsers out there (preferably
written in ruby or with a ruby interface)?
are you going to write a ruby compiler?
- cool, we are just waiting for someone to do it! ;)

-- henon
 
N

Nathan Weston

Actually, the immediate project I had in mind was a tool for searching
ruby source code -- to find, for example, the definition of a class or
method, all uses of an instance variable, etc.
 
L

Luke A. Guest

Are there any reasonably mature ruby parsers out there (preferably
written in ruby or with a ruby interface)?

I googled a little bit and searched RAA but I didn't come up with
much.

I don't know if it does. But I would expect the Ruby manuals to have a
grammar for Ruby. It would then be up to you to convert it into whatever
type of grammar you require.

BTW, A VM based Ruby could be interesting.

Luke.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

Forum statistics

Threads
474,139
Messages
2,570,805
Members
47,352
Latest member
DianeKulik

Latest Threads

Top