From: Dylan Evans Date: 2009-03-20T21:34:50+09:00 Subject: Re: Writing a language converter in Ruby ? --001485f870568afb4104658c2e2b Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit It's a good idea to use a parser generator, it will simplify your code and make it easier to work with. Of course you can just start reading the basic files and parse them with a bunch of logic. Of course the code quality will always be much higher if you just rewrite it, unless you want to compile it but then you would want to target C. On Fri, Mar 20, 2009 at 9:02 PM, Zouplaz wrote: > Hi, I wonder where to start if I wanted to write a converter from XX > language source code to Ruby source code or from Ruby to XX ? > > Eg. Converting Basic source code to Ruby ? > > Do I absolutely need to use a tool like CocoR > (http://www.zenspider.com/ZSS/Products/CocoR/) ? Or is there a standalone > approach that only uses Ruby capacities ? > > > > -- The UNIX system has a command, nice ... in order to be nice to the other users. Nobody ever uses it." - Andrew S. Tanenbaum --001485f870568afb4104658c2e2b--