Re: is there a very simple script interpreter?

Tech-Archive recommends: Repair Windows Errors & Optimize Windows Performance

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: Evaluate coding and style
    ... catch the case of a username given on the command line not actually ... For a script (executing directly from the command line), ...
    (comp.lang.python)
  • Re: os.popen command working differently on Windows
    ... Basically I am executing the OS specific ... move command to move a file/dir from one location to another. ... machine from my python script. ...
    (comp.lang.python)
  • 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)