|
Vekk Sonic
Registered User
Join date: 28 May 2006
Posts: 8
|
06-13-2006 15:00
Hey, all! I've been thinking about a project that I'd like to work on.. but I'm pretty sure it's impossible.. but just to be sure, I'll ask. Is it possible, in any way, to edit a script (itself or just another script in the same object) from a string of code? Like, to be able to take any string, and try to convert it into a script. I highly doubt that it is, but if somebody has some far out explanation for making this work, I'd love to here it. -Vekk Sonic 
|
|
Keknehv Psaltery
Hacker
Join date: 11 Apr 2005
Posts: 1,185
|
06-13-2006 15:41
No, but it might be possible to make a complex parsing routine that can do basic commands and control structures, like an extension of a calculator script.
|
|
Vekk Sonic
Registered User
Join date: 28 May 2006
Posts: 8
|
06-13-2006 16:14
Yeah, I was sort of thinking about that. It would take a long time to code, and it might be pretty limited, but.. at least the project could be somewhat functional.
|
|
Iron Perth
Registered User
Join date: 9 Mar 2005
Posts: 802
|
06-13-2006 16:17
I've done something like this .. out of sheer necessity, rather than experimental purposes.
LSLs message passing requirements lends itself well to this particular problem.
_____________________
http://ironperth.com - Games for SecondLife and more.
|
|
Alondria LeFay
Registered User
Join date: 2 May 2003
Posts: 725
|
06-13-2006 17:32
You could examine my implementation of Forth that is in the script libraries - it can create functions within itself (and even has an eval word to run commands stored in a string). If interested, I also have been working on a more advance (although less Forth and more a new language).
|
|
Gaius Goodliffe
Dreamsmith
Join date: 15 Jan 2006
Posts: 116
|
06-14-2006 07:41
From: Alondria LeFay You could examine my implementation of Forth that is in the script libraries... Now there's an idea! : TOOT FORTH LOVE IF HONK THEN ; The great thing about Forth is, you don't need to buy an obfuscator if you're distributing source, it's a built-in language feature. <laughs>
|
|
Paul Churchill
Pie are squared
Join date: 8 Sep 2005
Posts: 53
|
06-14-2006 08:32
From: Gaius Goodliffe The great thing about Forth is, you don't need to buy an obfuscator if you're distributing source, it's a built-in language feature. <laughs> *grin* yes, it can tend to l little bit write-only. Paul.
_____________________
If there are two ways to interpret something I've said and one of them offends or upsets you, I meant the other one.
|