RE: question that might not have an answer
Kat wrote:
>
>
> On 12 Jan 2004, at 15:11, Matt Lewis wrote:
>
> >
> > You might be interested in euscript, which is based on David's
> > interpreter. You can get it from my web page:
> >
> > http://www14.brinkster.com/matthewlewis/projects.html
> >
> > IIRC, someone (Greg Haberek?) was improving euscript. To see it > > in
> > action, you can check out EDB (also on my page). I use
> > euscript to allow user defined event handling in database forms.
>
> Matt, on-the-fly additions, or additions and then shutting down the
> app and restarting before the new code is runable?
On-the-fly additions. euscript is just David Cuny's eu.ex reworked into
an include file. In fact, you can have multiple, compartmentalized
scripts.
In order for it to meaningfully work with your application, you need to
provide an API into your code (calling functions, changing data, etc).
Basically, you provide a routine name, type (function or procedure), the
number of arguments and a routine id, and then it's visible to your
script. Changing variables must be handled indirectly (i.e., you need
to provide get/set routines to handle this).
The code isn't as robust as it could be. Your application could crash
after some script errors. For instance, there is no typechecking of
arguments when calling an external function. Part of the reason for
this is that it wasn't implemented by David (or Delroy, who took it over
at one point) and I don't understand how it all works well enough to do
this.
Matt Lewis
|
Not Categorized, Please Help
|
|