1. Executing Code on the Fly?

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.

new topic     » topic index » view message » categorize

2. Re: Executing Code on the Fly?

DamienRoseBlack said...

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

new topic     » goto parent     » topic index » view message » categorize

3. Re: Executing Code on the Fly?

jimcbrown said...

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

Thanks Jim that's helpful.

new topic     » goto parent     » topic index » view message » categorize

Search



Quick Links

User menu

Not signed in.

Misc Menu