Re: Modified Interpreter

new topic     » goto parent     » topic index » view thread      » older message » newer message

Hi Jim, you wrote:

> 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. blink
>
> "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.

Oops... I had forgotten about the translator.

> We could just say that 'execute()' is not supported by the translator,

Yes, that would be a possibility. Or how about this idea:

There could be a .DLL/.SO, that works very similar to exw.exe/exu, but
just executes strings instead of ascii files.
Any interpreted, non-bound, bound, or translated program then can use the
function(s) in the .DLL/.SO to execute strings containing Eu code.

One disadvantage is, that this would even more increase the number of
products, Rob would have to take care of.
But maybe someone who bought the Euphoria source code product would like
to build such a .DLL/.SO (provided it's allowed by the Euphoria
Interpreter Source Code License).
Just an idea ...

> but
> RC has already gone on record saying that he doesn't like that idea.
> (iirc anyways).

Oh, I didn't know that.

>> I just wrote a litte "interpreter" that executes code recursively. smile
>> 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 ...

Hmm? What is "eu.ex"?

> 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.

Best regards,
   Juergen

-- 
 /"\  ASCII ribbon campain  |    |\      _,,,---,,_
 \ /  against HTML in       |    /,`.-'`'    -.  ;-;;,_
  X   e-mail and news,      |   |,4-  ) )-,_..;\ (  `'-'
 / \  and unneeded MIME     |  '---''(_/--'  `-'\_)

new topic     » goto parent     » topic index » view thread      » older message » newer message

Search



Quick Links

User menu

Not signed in.

Misc Menu