From: Hugh Sasse Staff Elec Eng Date: 2005-01-27T04:31:05+09:00 Subject: Re: When little languages grow... 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... > > If full source, have you considered what it is exactly that might be I don't know what would be unsafe yet: I'm assuming that there are some smart people out there who like doing heap overruns and other feindish tricks that I'd not envisage.... So, I'd like to be safe by default rather than be safe for the cases I have considered. > unsafe? Maybe there's a way to create you own "Safety Net" by making > certain parts of Ruby inaccessable. Not sure how extactly, seems like > namepsaces would be needed, but it would be an interesting challange. > Also you might try ParseTree. I'll have a look for that, thanks. > > OTOH, if only a subset (or something completey different), I have a > general purpose and easy to use Parser class I've been working on for > Carats. Perhaps you'd like to try it and see if can help? Doing so > could also help me test/improve it for everyone. OK, bowl the URL in my direction! Thank you. > > T. > Hugh > >