Re: is there a very simple script interpreter?

From: hOSAM (bkazlak_BUT_NO_SPAMMING_at_yahoo.com)
Date: 07/17/04


Date: Sat, 17 Jul 2004 20:30:17 +0300

Hi Maurice,

Actually, the script I am referring to would be written by a developer, and
yes it will be executed via reflection on the currently executing assembly.

The application that will use this configuration scheme is really in need of
executing commands based on scripts. I can describe this application as " a
buiseness system that its flow will change every 3 months, but the basic and
atomic functionality will remain the same even after 100 years".

For example, let's say that acommand named "RunSchedular" is invoked. At
this time the command will run functions func1(), then func2(), then
func3(). However, after 3 months from now, it will run func1(), then func2()
if and only if the return value from func1() is greater than 6.

IF func1() > 6
    func2()
ELSE
    func4()
END IF

The problem is that every 3 months, the flow will change. Currently, I
cannot see anyway to get around this except for using custom configuration
script that will be interpretted at runtime.

"Maurice Reeves" <maurice.reeves@gmail.com> wrote in message
news:cda31s$dtj@odak26.prod.google.com...
> You could use Reflection to instantiate your business logic and then
> look at your object and see if it has a Command corresponding to the
> name in the script, and if it does, execute it, but frankly that seems
> like a hell of a lot of overhead to do what should probably be done in
> the code itself.
> Why are you doing things this way? Did the client request it?
>



Relevant Pages

  • Re: Pipe command output to listbox
    ... I've put together a simple script in Tcl to run another command-line ... DarwinPort's port list all command, ... executing exec correctly. ... |>The error message complains that the number of arguments to ListPackages ...
    (comp.lang.tcl)
  • Re: [SLE] email
    ... command' not 'file'. ... I have created a file called signature and placed it in my home ... You're seeing the contents of the script file because Mozilla can only ... do that -- it can't, AFAIK, paste in the results of executing a script ...
    (SuSE)
  • Jumpstart: syntax error and trying to load from /cdrom media, which disk to use for Solaris 8 image
    ... I'm not sure if I need to use that disk or the Solaris 8 Installation ... Using RPC Bootparams for network configuration information. ... Using finish script: diag_drv.fin ... Executing JumpStart preinstall phase... ...
    (SunManagers)
  • Re: understanding lambda
    ... All functions in the script are created when the script is parsed. ... A lambda function is created when the script is executing - and is not created unless that statement is executed. ... a new solid -- say, a cylinder, I would take two steps: ...
    (alt.php)
  • QUESTION: shared libraries
    ... how would I create a package easy-to-install for a new user? ... we could use a script to install the package. ... I have seen some scripts executing from a ... Gouvernement du Canada / Government of Canada ...
    (comp.os.linux.development.apps)