Re: Modified Interpreter

new topic     » goto parent     » topic index » view thread      » older message » newer message

On 13 Jul 2003, at 14:43, Bernie Ryan wrote:

> 
> 
> What am I missing ?

Not sure...

> What is the purpose of interperting and executing strings ?

Dynamic code inclusion.

> How can I use that kind of feature ?

This is out of a .txt file, a line that can be picked at random:

/describe %chan is dining on roast mouse,,,, want some, $prunenick(%nick) 
$+ ? $smile

"describe" is a command
"%chan" and "%nick" are local vars
"$prunenick" and "$smile" are functions
"$+" is a string operator

Naturally, one can get carried away dropping in new code while running:

/describe %chan $gettok(:stashes:places:stuffs:contemplates 
placing:,$rand(1,4),$asc(:)) $gettok(:the furry beast:it:,$rand(1,2),$asc(:))
into
$gettok(the her,$rand(1,2),32) $gettok(fridge refridgerator,$rand(1,2),32) 
$gettok(:to:so she can:,$rand(1,2),$asc(:)) $gettok(:eat it later:munch it 
later:eat it for dinner:have it for breakfast tomorrow:,$rand(1,4),$asc(:)) $+ .
$smile

It works nicely in mirc, $smile

You could have a user file that deforms lists, buttons, or totally re-skins an 
application your provide, and they never see your code, by dynamically 
including new methods and classes and vars/lists/lines/buttons. 

Kat

new topic     » goto parent     » topic index » view thread      » older message » newer message

Search



Quick Links

User menu

Not signed in.

Misc Menu