C++Talk.NET Forum Index C++Talk.NET
C++ language newsgroups
 
Archives   FAQFAQ   SearchSearch   MemberlistMemberlist   UsergroupsUsergroups   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

Scripting library

 
Post new topic   Reply to topic    C++Talk.NET Forum Index -> C++ Language (Moderated)
View previous topic :: View next topic  
Author Message
Francisco Santiago Capel
Guest





PostPosted: Sat Sep 17, 2005 2:00 pm    Post subject: Scripting library Reply with quote



Hello,

I am looking for a scripting library to add to a C/C++ program with a language
similar to JavaScript, something like QSA (from Qt) but I want something
small, fast and complete that doesn't need a graphical environment.

Any suggestions?

Thanks.


--
---------------------------------------------
Visit my blog: http://respetaralagnostico.blogspot.com
---------------------------------------------
Francisco Santiago Capel Torres
[email]santiagocapel (AT) yahoo (DOT) es[/email]



______________________________________________
Renovamos el Correo Yahoo!
Nuevos servicios, más seguridad
http://correo.yahoo.es


[ See http://www.gotw.ca/resources/clcm.htm for info about ]
[ comp.lang.c++.moderated. First time posters: Do this! ]

Back to top
Philippe Amarenco
Guest





PostPosted: Sun Sep 18, 2005 11:55 am    Post subject: Re: Scripting library Reply with quote



Francisco Santiago Capel Torres <santiagocapel (AT) yahoo (DOT) es> writes:

Quote:
Hello,

I am looking for a scripting library to add to a C/C++ program with a language
similar to JavaScript, something like QSA (from Qt) but I want something
small, fast and complete that doesn't need a graphical environment.

Any suggestions?


perl and python let you do that.

look for "embedding perl in C" on google.

--
Philippe Amarenco, aka Phix
epita 2007 - LSE - EpX
"if new true friend not protected for explicit private union, break
case and try using this." -- Nathan Myers, longest c++ sentence.

[ See http://www.gotw.ca/resources/clcm.htm for info about ]
[ comp.lang.c++.moderated. First time posters: Do this! ]


Back to top
marcel.lanz@gmail.com
Guest





PostPosted: Sun Sep 18, 2005 1:29 pm    Post subject: Re: Scripting library Reply with quote



try lua. ist easy to integrate (I use it in an embedded sytem), system
hooks are quite easy to adapt.

you need at least the core-library. there are libraries for string
processing and other things.

http://www.lua.org/
http://en.wikipedia.org/wiki/Lua_programming_language


[ See http://www.gotw.ca/resources/clcm.htm for info about ]
[ comp.lang.c++.moderated. First time posters: Do this! ]

Back to top
Cédric LEMAIRE
Guest





PostPosted: Sun Sep 18, 2005 1:31 pm    Post subject: Re: Scripting library Reply with quote

Quote:
I am looking for a scripting library to add to a C/C++ program with a language
similar to JavaScript, something like QSA (from Qt) but I want something
small, fast and complete that doesn't need a graphical environment.

So, a JavaScript engine written in C could be perfect, no?
Try SpiderMonkey (developped by Mozilla) at
"http://www.mozilla.org/js/spidermonkey/".


[ See http://www.gotw.ca/resources/clcm.htm for info about ]
[ comp.lang.c++.moderated. First time posters: Do this! ]


Back to top
Mirek Fidler
Guest





PostPosted: Sun Sep 18, 2005 2:46 pm    Post subject: Re: Scripting library Reply with quote

Quote:
Hello,

I am looking for a scripting library to add to a C/C++ program with a language
similar to JavaScript, something like QSA (from Qt) but I want something
small, fast and complete that doesn't need a graphical environment.

Any suggestions?

http://upp.sourceforge.net/srcdoc-us.html

Implementation has about 2500 lines, interfacing with C++ code is very
simple.

Mirek

[ See http://www.gotw.ca/resources/clcm.htm for info about ]
[ comp.lang.c++.moderated. First time posters: Do this! ]


Back to top
David Abrahams
Guest





PostPosted: Sun Sep 18, 2005 5:38 pm    Post subject: Re: Scripting library Reply with quote

Francisco Santiago Capel Torres <santiagocapel (AT) yahoo (DOT) es> writes:

Quote:
Hello,

I am looking for a scripting library to add to a C/C++ program with a language
similar to JavaScript, something like QSA (from Qt) but I want something
small, fast and complete that doesn't need a graphical environment.

Any suggestions?

You might try http://www.boost.org/libs/python. People seem pretty
happy with it.

--
Dave Abrahams
Boost Consulting
www.boost-consulting.com

[ See http://www.gotw.ca/resources/clcm.htm for info about ]
[ comp.lang.c++.moderated. First time posters: Do this! ]


Back to top
dlwh@aol.com
Guest





PostPosted: Sun Sep 18, 2005 5:53 pm    Post subject: Re: Scripting library Reply with quote

Check out Lua ([url]www.lua.org)[/url]. It matches all of those categories.

David Hall


[ See http://www.gotw.ca/resources/clcm.htm for info about ]
[ comp.lang.c++.moderated. First time posters: Do this! ]

Back to top
Mikhail Gusarov
Guest





PostPosted: Sun Sep 18, 2005 5:54 pm    Post subject: Re: Scripting library Reply with quote


You (santiagocapel (AT) yahoo (DOT) es) wrote:

FSCT> I am looking for a scripting library to add to a C/C++ program
FSCT> with a language similar to JavaScript, something like QSA (from
FSCT> Qt) but I want something small, fast and complete that doesn't
FSCT> need a graphical environment.

Have a look at Lua ([url]www.lua.org)[/url]. Lua is a simple, clean and small
language designed especially to be embedded in C and extended by C and
also has a nice C++ boost-style binding named luabind
([url]http://luabind.sourceforge.net/)[/url].

--
Mikhail Gusarov
ICQ UIN: 111575219
JID: [email]dottedmag (AT) jabber (DOT) fanstvo.com[/email]

[ See http://www.gotw.ca/resources/clcm.htm for info about ]
[ comp.lang.c++.moderated. First time posters: Do this! ]

Back to top
Meador Inge
Guest





PostPosted: Sun Sep 18, 2005 6:03 pm    Post subject: Re: Scripting library Reply with quote

Francisco Santiago Capel Torres wrote:
Quote:
Hello,

I am looking for a scripting library to add to a C/C++ program with a language
similar to JavaScript, something like QSA (from Qt) but I want something
small, fast and complete that doesn't need a graphical environment.

Any suggestions?
I would check out Perl andor Python. Info about interfacing with these

languages from CC++ can be found here:
Python - http://docs.python.org/api/api.html
Perl - http://search.cpan.org/dist/perl/pod/perlembed.pod


[ See http://www.gotw.ca/resources/clcm.htm for info about ]
[ comp.lang.c++.moderated. First time posters: Do this! ]


Back to top
Maciej Sobczak
Guest





PostPosted: Mon Sep 19, 2005 11:42 am    Post subject: Re: Scripting library Reply with quote

Francisco Santiago Capel Torres wrote:

Quote:
I am looking for a scripting library to add to a C/C++ program with a language
similar to JavaScript, something like QSA (from Qt) but I want something
small, fast and complete that doesn't need a graphical environment.

Any suggestions?

Try Tcl. This may help you a lot:

http://cpptcl.sourceforge.net/

Tcl is very mature and allows you to create many independent
interpreters in your application, completely isolated from each other
(other languages suggested here may have problems with this, at least
that was the case with Python the last time I checked). This is
important, especially when embedding in a bigger C++ application - once
you start liking the whole idea you will for sure try to plug the
interpreter in different parts of the program (possibly running in
separate threads). In such an environment you certainly don't want the
interpreters to be related to each other in any way. Check this
carefully before commiting yourself to any language, it may save you
some grief later.


--
Maciej Sobczak : http://www.msobczak.com/
Programming : http://www.msobczak.com/prog/

[ See http://www.gotw.ca/resources/clcm.htm for info about ]
[ comp.lang.c++.moderated. First time posters: Do this! ]


Back to top
Patrick May
Guest





PostPosted: Mon Sep 19, 2005 5:13 pm    Post subject: Re: Scripting library Reply with quote

Maciej Sobczak <no.spam (AT) no (DOT) spam.com> writes:
Quote:
Francisco Santiago Capel Torres wrote:

I am looking for a scripting library to add to a C/C++ program
with a language similar to JavaScript, something like QSA (from
Qt) but I want something small, fast and complete that doesn't
need a graphical environment.

Any suggestions?

Try Tcl. This may help you a lot:

If you can drop the requirement for JavaScript similarity, Guile
(http://www.gnu.org/software/guile) is an excellent choice.

Regards,

Patrick

------------------------------------------------------------------------
S P Engineering, Inc. | The experts in large scale distributed OO
Quote:
systems design and implementation.
[email]pjm (AT) spe (DOT) com[/email] | (C++, Java, Common Lisp, Jini, CORBA, UML)


[ See http://www.gotw.ca/resources/clcm.htm for info about ]
[ comp.lang.c++.moderated. First time posters: Do this! ]


Back to top
Display posts from previous:   
Post new topic   Reply to topic    C++Talk.NET Forum Index -> C++ Language (Moderated) All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum


Powered by phpBB © 2001, 2006 phpBB Group
SEO toolkit © 2004-2006 webmedic.