fe***********@g mail.com wrote in message news:<11******* *************** @o13g2000cwo.go oglegroups.com> ...
Hey I'm sorry if this is not the appropriate news group for this
question. I was wondering if anyone has any recommendation for
embbedding a script engine in a c++ application. I want to feed my C++
application scripts which based on the script would create C++ objects
and call the appropriate methods.
At the moment I created a simple interpreter within our C++ aplication
that we can feed our custom scripts. The interpreter is primitive and
it lacks alot of functionality that is why I am looking at other
alternatives.
I looked at spidermonkey to embed in my c++ application but it seems a
little cumbersome dealing with C++ objects. Does anyone have any other
recommendations ?
Hello.
Open Basic this is realization of the interpreter of language Basic.
http://www.mktmk.narod.ru/eng/ob/ob.htm
Open Basic (OB) is realization of the interpreter of language Basic.
OB is developed for embed to user application as a script language.
User may attach (connect) user function to Open Basic execution
system.
The user functions can be written on C/C++, assembler or others
languages.
The user functions can receive parameters from the Basic-program and
return results to Basic-program.
Program interface of user functions allows determine type and order
of parameters at run-time.
OB realizes a subset of commands of language Basic.
OB it is written completely on C++ and it is realized as a class with
a name ob_obasic.
OB supports data of three types: floating point, signed integer, and
string and arrays of these types.
OB has multithread-safe code.
Now OB have library for GCC 3.2.2, BCB 6.0, MSVC 7.
For use OB need only one library for appropriated compiler and 6
header files:
mstore.h - policy
mvect.h - vector
mlist.h - list
mstack.h - stack
mhash.h - hash-table
ob.h - main header file of Open Basic
Open Basic have IDE for program debug.
Integrated development environment for Open Basic (IDE OB) is
intended for support of debugging programs of interpreter Open Basic.
http://www.mktmk.narod.ru/eng/ide_ob/ide_ob.htm
IDE OB can be an example for integration of interpreter Open Basic
for
OS Windows.
IDE OB is not a part of interpreter Open Basic.
Interpreter Open Basic can use without IDE OB.
IDE OB gives usual service of the debugging environment:
- Edit the text of programs
- Loading programs into interpreter (some modes)
- Start of program in the interpreter
- Stop program
- Step-by-step execution of program
- Animate execution of program
- Breakpoints (on interpreter level, do not support IDE OB)
- Viewing and updating variables ("Watch" window)
- Viewing diagnostic messages of the interpreter ("Messages" window)
- Support of operators PRINT and INPUT ("I/O Terminal" window)
IDE OB is written on Borland C++ Builder 6.0 (BCB 6.0).
Sincerely Yours
Basil