Re: Small embeddable scripting language ?

On Thu, Nov 28, 2002 at 11:12:50PM +0000, rob wrote:
> > BTW, anyone here who has used JS or Python embedding in the Real World
> > (TM) GNOME project ? Pointers to code bits would be nice.

You can get some inspiration from:

cvs -z3 -d:pserver:anonymous kolos math uni lodz pl:/home/cvsroot get duskc

This program uses embedded languages in plugins. The work is in
progress, but I have just started.

Program running scenary is in src/main.c [***]
        Plugins support is in src/plugins.{h,c}
       Language support is in src/lang_config.{h,c} [*]
      Language plugins are in plugins/lang-* (python does not working yet)

[*] There simple value types: long, double, string; complex types:
array and hash array (of values of any types)

All configuration is kept in one variable of type "hash array"

values can be immediate (just copy it), or not immediate (calls a
function[**] on request)

[**] C function. It can be a wrapper to script's function (such wrappers
do not exist in my program yet)

[***] there is also strange solution for gh_enter (libguile function)

PS. sorry for my weak english...
Krzysztof Garus <kgarus bigfoot com>               Linux User 171721

[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]