From: Le Lann Jean-Christophe Date: 2008-03-09T21:32:58+09:00 Subject: Re: Ruby tools to develop compilers Phil Tomson a �crit : > On 3/2/08, Le Lann Jean-Christophe wrote: > >> Hi, >> >> For some days now, I have been trying to find the best Ruby tools to >> develop compilers : lexer, parser and possibly more (ast, visitor). >> > > I'll join the chorus for TreeTop: it's pleasant to work with... > though, it doesn't produce the fastest parsers around. > > There's also Ruby parsec if you want to go the parser combinator route: > http://docs.codehaus.org/display/JPARSEC/Ruby+Parsec > I have not played with it, though. > > Thanks all for your answers, Regarding TreeTop, there is a tutorial by its author at http://rubyconf2007.confreaks.com/d1t1p5_treetop.html. My preference goes to Treetop too, because it seems elegant and based on efficient algorithms. (I will give my own feedback on real grammars, when ready) Nobody is using Antlr with Ruby output ? Antlr seemed great because it gives you access to a bunch of various grammars, already described. Regards, JC