CodeGuru Home VC++ / MFC / C++ .NET / C# Visual Basic VB Forums Developer.com
Results 1 to 6 of 6
  1. #1
    Join Date
    Dec 2001
    Location
    ROMANIA
    Posts
    30

    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

  2. #2
    Join Date
    Nov 2002
    Location
    Foggy California
    Posts
    1,245
    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.

  3. #3
    Join Date
    Dec 2001
    Location
    ROMANIA
    Posts
    30

    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...)

  4. #4
    Join Date
    Sep 2002
    Posts
    1,747
    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

  5. #5
    Join Date
    Dec 2001
    Location
    ROMANIA
    Posts
    30

    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 ?

  6. #6
    Join Date
    Sep 2002
    Posts
    1,747
    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
  •  





Click Here to Expand Forum to Full Width

Featured