Re: Another EU 2.5 suggestion...
- Posted by "Elliott S. de Andrade" <quantum_analyst at hotmail.com> Jan 25, 2004
- 466 views
>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.