Re: Another EU 2.5 suggestion...

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

>From: Isaac Raway <isaac-topica at blueapples.org>
>Subject: Re: Another EU 2.5 suggestion...
>
>aku saya wrote:
>
>>After reading many posts about the eval() function, I want to post my
>>opinion, that eval() will not be suitable for euphoria, because
>>euphoria can be translated and compiled, not just interpreted. Eval()
>>needs interpreter. So I think there will never be an eval() function
>>in euphoria.
>>
>>
>I disagree entirely. The facility that eval() provides would be easy to 
>implement. Simply create a function euParse() which returns the IL code for 
>a string of Euphoria source, and a function euRun() which executes this IL. 
>You could then provide a function eval(sequence source) that just does 
>return euRun(euParse(source)). Easy.
>

With the next version of Euphoria, I think this will be very easy. The 
parser will be Euphoria code, so all you have to do is translate it to IL 
code, and use it to translate stuff you want to eval(). This is useable even 
when you translate the code.

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

Search



Quick Links

User menu

Not signed in.

Misc Menu