Hi,
I think I should also mention another embedable scripting language.
It's called S-Lang. It's used as an extention language in the "jed"
editor ( for example the RedHat Linux 5.1 comes with jed and slang 0.99.38
so one has the libslang.a and libslang.so for free !!! I'm pretty sure
that every distribution which provides "jed" binaries provides also these
libraries - for free ).
The S-Lang library is a separate "product" which one can get from :
space.mit.edu
in subdirectory :
/pub/davis/slang
The current versin seems to be slang1.2.2.tar.gz dated Apr 24 1998, but
there is also the v0.99 subdirectory with slang0.99-38.tar.gz.
The S-Lang has a "simpler" C-like syntax and is quite well documented
( not only the language itself, but also how to "glue" it with C ).
It has already proven to be a good scripting language for an editor :-)
If you have a RedHat system somewhere available have a look at :
/usr/doc/slang-devel-0.99.38/slang.txt
for the language description.
The idea would be following :
- on leaves the S-Lang library as is - in many cases provided by
the system with jed :-)
- on learns how to embed this library into an editor using "jed"
sourced - maybe we could also "steal" some extention functions
I know the tar.gz file is 500kB long so the sources are 1MB long after
unpacking, but ... who cares ... this is just a library which we simply
link against without modifications of it ( did you ever care how big are
the standard C library, or X11 library sources ? ).
I've got this idea yesterday's night and I must say I like it.
Jacek.