Re: Modified Interpreter
- Posted by jbrown105 at speedymail.org Jul 12, 2003
- 479 views
On Sat, Jul 12, 2003 at 04:44:38PM +0200, Juergen Luethje wrote: > > Me wrote: > > <snip> > > > Please allow me a "stupid" question: Regarding the interpreter, what is > > the problem with enabling it to execute sequences/strings? > > The Eu interpreter already is able to interpret Eu code. "Interpreter" ... but not the translator. > > ATM, it does so at "interpretation time". Is it really difficult, to let > > it also do so at run time? For the translator, yes. We could just say that 'execute()' is not supported by the translator, but RC has already gone on record saying that he doesn't like that idea. (iirc anyways). > > I just wrote a litte "interpreter" that executes code recursively. > Just save the three attached files, and run 'interpret.ex'. > Is Euphoria too complex, to use this principle? I haven't looked at your code yet ... but I will. It should be noted that it is possible (in fact, relatively easy) to use eu.ex itself for this ... someone has already done so iirc. Futhermore, I was trying to figure out how to modify eu.ex to support eval() .... its not too copmlicated with the way eu.ex parses code. If eu.ex can do it, then surely the interpreter can. > > Very curious, > Juergen > > -- > /"\ ASCII ribbon campain | |\ _,,,---,,_ > \ / against HTML in | /,`.-'`' -. ;-;;,_ > X e-mail and news, | |,4- ) )-,_..;\ ( `'-' > / \ and unneeded MIME | '---''(_/--' `-'\_) > > > > TOPICA - Start your own email discussion group. FREE! > > -- /"\ ASCII ribbon | http://www.geocities.com/jbrown1050/ \ / campain against | Linux User:190064 X HTML in e-mail and | Linux Machine:84163 /*\ news, and unneeded MIME | http://verify.stanford.edu/evote.html