From: Alex Gutteridge Date: 2009-03-27T02:00:25+09:00 Subject: Re: Writing a language converter in Ruby ? On 26 Mar 2009, at 16:51, Albert Schlef wrote: > Brian Candler wrote: >> Albert Schlef wrote: >>> That's interesting. I see that their DSL looks like: >>> >>> rule additive >>> multitive '+' additive / multitive >>> end >>> >>> Do you notice? There's "end" there but no "do"! How is it possible? >> >> Because it's not Ruby. >> [snip] >> Presumably, TXL's language *requires* a rule body followed by end. > > But I was not talking about TXL. I was talking about Treetop > (http://treetop.rubyforge.org/). > > -- > Posted via http://www.ruby-forum.com/. Treetop grammers aren't written in Ruby (or TXL) they're their own custom language. Alex Gutteridge Systems Biology Centre University of Cambridge