From: Florian Gross Date: 2005-01-08T20:31:25+09:00 Subject: Re: approach to solving a problem darren wrote: > The question I have is how to approach translating a procedurally structured > program written in C into a properly structured Ruby program. I have a > Pascal-like compiler that was written in C by my class last semester. As an > exercise to learn Ruby and better understand the Pascal compiler, I thought > I'd try to rewrite the compiler with Ruby. But, I'm getting confused on how > to think this procedural solution in object oriented terms. While I'm not generally sure of what the best design for compilers or parsers in object orientation terms is, Racc might be of help here. There's documentation available on http://i.loveruby.net/en/man/racc/usage.html BTW: I don't see the C code actually emitting anyway. Is it just a Pascal parser?