Re: is there a very simple script interpreter?
From: hOSAM (bkazlak_BUT_NO_SPAMMING_at_yahoo.com)
Date: 07/17/04
- Next message: Shakir Hussain: "Re: Icon question"
- Previous message: Jay B. Harlow [MVP - Outlook]: "Re: .NET generics & the .NET framework: not generic enough?"
- In reply to: Maurice Reeves: "Re: is there a very simple script interpreter?"
- Next in thread: William Stacey [MVP]: "Re: is there a very simple script interpreter?"
- Reply: William Stacey [MVP]: "Re: is there a very simple script interpreter?"
- Messages sorted by: [ date ] [ thread ]
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?
>
- Next message: Shakir Hussain: "Re: Icon question"
- Previous message: Jay B. Harlow [MVP - Outlook]: "Re: .NET generics & the .NET framework: not generic enough?"
- In reply to: Maurice Reeves: "Re: is there a very simple script interpreter?"
- Next in thread: William Stacey [MVP]: "Re: is there a very simple script interpreter?"
- Reply: William Stacey [MVP]: "Re: is there a very simple script interpreter?"
- Messages sorted by: [ date ] [ thread ]
Relevant Pages
|