Re: Euphoria Interpter ?
- Posted by Bernie Ryan <xotron at bluefrog.com> Nov 17, 2005
- 1321 views
Matt Lewis wrote: > It's definitely possible to do this. But not necessarily simple or easy. > You're basically embedding another language into euphoria--and one that > executes immediately, changing the state of the interpreter. I don't see > an easy way you could use too much of the builtin routines without some > big hacks. Matt: I don't think it is as complicated as you think. This is what I mean. #define LINUX -- at the top of the program I place this or #define WIN32 -- depending on what I define at top of program the parser only -- parses the code that meets the defined condition. #IF Linux include linux.eu for i = 1 to 200 do do somthing end for #ELSIF WIN32 include win32.ew for i = 1 to 200 do do somthing end for #ELSE include dos.e for i = 1 to 200 do do somthing end for #ENDIF Bernie My files in archive: w32engin.ew mixedlib.e eu_engin.e win32eru.exw Can be downloaded here: http://www.rapideuphoria.com/cgi-bin/asearch.exu?dos=on&win=on&lnx=on&gen=on&keywords=bernie+ryan