Kevin Tew wrote:
That would be me!
PRuby is the project.
Suggestions of a better project name are welcome.
Possibly Cardinal? (A ruby-red bird.) The original Cardinal project was
started in 2002, but talking last night we decided it needed a complete
re-write in PGE/TGE (which is when you were mentioned). I suspect Phil
would be happy to donate the name to the new version, and even help out.
I'll connect you two.
Any chance you might make it out to Portland the last week of July?
There will be some hacking sessions at OSCON and it'd be great to get
together with you, Patrick, and the PDX.rb group.
Current Source is at http://tewk.com/pruby.tgz
It is currently hosted in a private svn repo.
Chip said I can have a commit bit. So Thats a great start.
I will put a signed copy of the CLA in the mail today.
Awesome!
I based the initial PGE grammar for PRuby off of
svn://rubyforge.org/var/svn/rubygrammar/grammars/antlr-v3/trunk/ruby.g
which is in complete.
I'm looking for a BNF style description of the Ruby grammar. Otherwise
I will have to dig into :pserver:[EMAIL PROTECTED]:/src/parse.y.
No one last night knew of a BNF grammar for Ruby, but I've found that
translating from yacc to PGE isn't difficult (it's what I've done with
Punie).
I used to use
$P0 = find_global "", "_dumper"
$P0( $P1, "$P1")
inside TGE transformational rules to dump tree nodes, but that doesn't
work now.
PGE uses the Parrot version of Data::Dumper (which is what this code
does), but the TGE nodes don't (yet). Just call the 'dump' method on the
tree node.
node.'dump'()
Allison