Re: Another EU 2.5 suggestion...
- Posted by "Hayden McKay" <hmck1 at dodo.com.au> Jan 25, 2004
- 518 views
The translator uses a compiler to convert Euphoria to compatible C/C++ modules, depending on the compiler. You can then use "make.bat" that is produced to link the C source code wich takes care of any posibble parameters you may have needed. This means you dont really have to use Borland or the Watcom C compiler manualy at all. ----- Original Message ----- From: "Juergen Luethje" <j.lue at gmx.de> To: <EUforum at topica.com> Sent: Sunday, January 25, 2004 8:22 PM Subject: Re: Another EU 2.5 suggestion... > > > Isaac Raway wrote: > > > 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. > > > > Also, it is not quite true that Euphoria can be compiled. > > aku saya wrote: "translated and compiled". > I have translated Eu code to C myself several times, using RDS' Eu2C > translator. Then I did something with the C code, using the Borland or > the Watcom C compiler, resulting in an EXE file. > What did the compilers do with he C code, if they did not compile it? > > > It is simply > > translated to the aforementioned IL, and then executed, so providing > > these three functions should be as simple as wrapping their Euphoria > > (for the parser in 2.5) and C counterparts. > > Regards, > Juergen > > -- > /"\ ASCII ribbon campain | Math problems? > \ / against HTML in | Call 1-800-[(10x)(13i)^2]-[sin(xy)/2.362x]. > X e-mail and news, | > / \ and unneeded MIME | http://home.arcor.de/luethje/prog/ > > > > TOPICA - Start your own email discussion group. FREE! > > > -- > Incoming mail is certified Virus Free. > Checked by AVG anti-virus system (http://www.grisoft.com). > Version: 6.0.564 / Virus Database: 356 - Release Date: 20/01/04 > --- --