From: ptkwt@... (Phil Tomson) Date: 2004-08-26T07:25:42+09:00 Subject: Re: RACC examples In article <5d4c6124040825143014d13498@mail.gmail.com>, Lennon Day-Reynolds wrote: >On Thu, 26 Aug 2004 05:50:38 +0900, Phil Tomson wrote: >> Actually, that would be great as it's similar to something we're trying to >> do with the Cardinal project: We want to be able to parse Ruby's C files >> (array.c, hash.c, etc) and translate to Parrot assembly. > >Problem: We want Ruby to run on the Parrot VM >Solution: Write a C compiler that emits parrot bytecodes, and just >recompile the standard Ruby sources Well, that's not exactly the plan. The problem we have is that we need all of the builtin libraries (those coded in C - classes like Array, Hash, String, ...) to work with Ruby/Parrot. So instead of hand-coding them all over in Parrot IMC (a huge effort in itself), we're thinking of somehow parsing the Ruby/C to translate it into IMC. Now it'll probably turn out that it takes us as long as it would have to hand-translate, but it'll be a lot more interesting and the resulting code will probably be useful for other projects besides Cardinal. A project for doing this has been started at: http://rubyforge.org/projects/rubyclconv/ > >You guys are nuts. Perhaps in a brilliant way, but crazy nonetheless. > All the best stuff results from some crazy idea ;-) Phil