|
-
September 2nd, 2003, 05:18 PM
#1
scripting engine
hello !
i'm looking for a simple scipting engine with support for strings, buffers, and so on...
i'm not sure if i understand the scipting engine concept too well, so i will try to explain it...
first, i need this to include it in a program that does some simple process on strings (insert, remove, etc), in the following way :
-my program receives data
-my program is executing the script, passing some data to it
-the script is processing
-my program retrieves data
so, i can do some DLL's for processing (that is what i'm using now) but i want to be able to modify the code in a more simple way, having the code as a script that my program executes, instead of building lots of DLL's
i hope that someone out there can help me...
thank you
DANI
-
September 2nd, 2003, 07:11 PM
#2
There are many scripting engines out there available for you to use. Microsoft has a script engine activeX control. You can also embed perl and python engines into your app. I suggest searching on Google, SourceForge, MSDN, and python.org for the wide variety of options.
-
September 3rd, 2003, 09:47 AM
#3
yes, but...
i know that, but i need one scripting engine that i can transparently embed in my project, without using any DLL's...
on the net, every script engine that i saw was far too complex for my needs and i would have to include a 2 MB DLL in my program release...
i need one that i can include some files in my project (sources), compile it, and done !
thanks !
(some link maybe...)
-
September 3rd, 2003, 04:14 PM
#4
If even scripting languages like Lua are not of help to what you need, it looks like you want to build your own scripting language. To start, you probably would find a regular expression parser of some help (boost has a nice one which is being adapted into an ISO standard c++ library), or you may want to go the full language route and build from a lexical analyzer. If there are only a few basic commands, the size can be kept quite short by using the more basic tools.
*/*/*/*/*/*/*/*/*/*/*/*/*/*/*/*/*/*/
"It's hard to believe in something you don't understand." -- the sidhi X-files episode
galathaea: prankster, fablist, magician, liar
-
September 3rd, 2003, 05:26 PM
#5
a link ?
yes, unfortunatelly it looks like i must build my very own script...
too bad, because i would be needed something very simple...
but if i must do it...
so where can i find that expression parser ?
-
September 3rd, 2003, 06:50 PM
#6
Boost's regex++ library can be found here. If you find that building your own scripting language is too complicated at that level, fuller lexical analyzers like Lex or Antlr may be of use, though they will likely add more overhead.
*/*/*/*/*/*/*/*/*/*/*/*/*/*/*/*/*/*/
"It's hard to believe in something you don't understand." -- the sidhi X-files episode
galathaea: prankster, fablist, magician, liar
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|