Re: Executing Code on the Fly?
- Posted by jimcbrown (admin) Feb 08, 2010
- 1129 views
I was just planning out some project I want to do and got to wondering, how difficult would it be to execute code on the fly in some sort of pseudo-interpreted way? I'm still not too familiar with the front-end/back-end, so poking around didn't give me much insight. If someone knowledgeable could tell me how someone would theoretically accomplish such a task I'd be grateful.
Very easy. Look at eu.ex in the source (the interpreter-in-eu, alongside int.ex and ec.ex). It'll parse the code to intcodes and then interpret them.
Also, check out euscript in the archives. It is based on an older version of euphoria but it is a modified eu.ex that integrates better as a library.
It is available here: http://web.archive.org/web/20060812052725/httphttp://www14.brinkster.com/matthewlewis/euscript.zip