Does somebody know what could be the simplest and fastest way to
build a new Ruby compiler? There are so many Ruby implementations,
and I’m wondering if there are great tools that make it easy to bring up
just another one.
The first (and most important) thing is a parser. It would be great to
MRI Ruby’s parse.y file but I’m afraid that’s just to tightly wired to
other parts of the implementation. There’s racc too, that could be a
way to build my compiler prototype if there would be a Ruby description
written in racc. (It’s a tempting idea to write a prototype of the
in Ruby…) Of course, I could write my own parser, but that’s
that would be great to borrow from other implementations, and just let
focus on the output code generation part. It would be great to use a
that is ISO/MRI compliant out of the box.
What tools do you think are useful for one, who plans to create yer
Ruby implementation? I know RubySpec and mspec, those are almost
necessary to get things right. But is there anything else that I should