From: Hugh Sasse Staff Elec Eng Date: 2005-01-27T04:49:22+09:00 Subject: Re: When little languages grow... On Thu, 27 Jan 2005, Edgardo Hames wrote: > On Thu, 27 Jan 2005 04:31:05 +0900, Hugh Sasse Staff Elec Eng > wrote: >> On Thu, 27 Jan 2005, Trans wrote: >> >>> Hi Hugh, >>> >>> What are you trying to parse exactly? Is it full Ruby source or a small >>> subset? >> >> Not full ruby source, just a mini-language, maybe using Ruby's >> parser instead of botching(!) my own... >>> > > Is the "mini-language" given or you can build your own "mini-language"? Build my own. > If you can write your own language, then you should consider writing a > DSL suitable for your problem a la Rails, and then, let the Ruby I've not grokked Rails yet, but yes, it is Domain Specific. The problem is not designing the language (because I know the sort of things I want to say); the problem is how to parse it with some abstract machine such that I can maintain that machine and improve it. Also I don't want to open up security holes unneccesarily: "Deliver us from Eval". One doesn't intend to get hostile users, but the possibilty is there. > interpreter do the whole job. > > Kind Regards, > Ed Thank you, Hugh